mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Upload files
This commit is contained in:
10
test_base.ts
Normal file
10
test_base.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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 });
|
||||
}
|
||||
Reference in New Issue
Block a user