Upload files

This commit is contained in:
2023-05-19 11:57:36 +08:00
commit fa9294b1d8
24 changed files with 1834 additions and 0 deletions

10
test_base.ts Normal file
View 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 });
}