mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
11 lines
326 B
TypeScript
11 lines
326 B
TypeScript
import { exists } from "https://deno.land/[email protected]/fs/exists.ts";
|
|
|
|
export const API_PERMISSION: Deno.PermissionOptions = {
|
|
read: ["./config.json"],
|
|
net: ["e-hentai.org", "exhentai.org"],
|
|
};
|
|
|
|
export async function remove_if_exists(f: string) {
|
|
if (await exists(f)) await Deno.remove(f, { "recursive": true });
|
|
}
|