Update Deno to 2.1 LTS!

This commit is contained in:
Bruno Bernardino
2024-11-30 08:13:22 +00:00
parent 7ef8220bb1
commit bbf8683004
12 changed files with 25 additions and 22 deletions

View File

@@ -69,7 +69,7 @@ async function getPathEntries(userId: string, path: string): Promise<Deno.DirEnt
try {
await Deno.stat(rootPath);
} catch (error) {
if (error.toString().includes('NotFound')) {
if ((error as Error).toString().includes('NotFound')) {
await Deno.mkdir(join(rootPath, TRASH_PATH), { recursive: true });
}
}
@@ -80,7 +80,7 @@ async function getPathEntries(userId: string, path: string): Promise<Deno.DirEnt
try {
await Deno.stat(rootPath);
} catch (error) {
if (error.toString().includes('NotFound')) {
if ((error as Error).toString().includes('NotFound')) {
await Deno.mkdir(rootPath, { recursive: true });
}
}