Files
eh-downloader/test_base.ts
2023-05-20 11:50:20 +08:00

16 lines
379 B
TypeScript

import { exists } from "std/fs/exists.ts";
export const API_PERMISSION: Deno.PermissionOptions = {
read: ["./config.json"],
net: [
"e-hentai.org",
"exhentai.org",
"api.e-hentai.org",
"api.exhentai.org",
],
};
export async function remove_if_exists(f: string) {
if (await exists(f)) await Deno.remove(f, { "recursive": true });
}