mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
16 lines
379 B
TypeScript
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 });
|
|
}
|