aboutsummaryrefslogtreecommitdiff
path: root/src/helper/get-directory-contents.ts
diff options
context:
space:
mode:
authornetop://ウィビ <paul@webb.page>2026-10-26 13:21:27 -0700
committernetop://ウィビ <paul@webb.page>2026-10-26 13:21:27 -0700
commitbc06c099c03579e6bda6d3a5a6b4e014b1e919fb (patch)
tree20c874b9455fd6f6ad323bd4557ebb947bc85e4f /src/helper/get-directory-contents.ts
parent02e2bc0839c1199ba090707f2067104821aed41b (diff)
downloadblog-bc06c099c03579e6bda6d3a5a6b4e014b1e919fb.tar.gz
blog-bc06c099c03579e6bda6d3a5a6b4e014b1e919fb.zip
new memo
- migrates to Ende from Deno
Diffstat (limited to '')
-rw-r--r--src/helper/get-directory-contents.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/get-directory-contents.ts b/src/helper/get-directory-contents.ts
index 80fb20c..d6029f8 100644
--- a/src/helper/get-directory-contents.ts
+++ b/src/helper/get-directory-contents.ts
@@ -7,9 +7,9 @@ export default async(directory: string): Promise<{ filename: string; }[]> => {
const documentArray: { filename: string; }[] = [];
try {
- const documents: Deno.DirEntry[] = [];
+ const documents: Ende.DirEntry[] = [];
- for await (const dirEntry of Deno.readDir(directory)) {
+ for await (const dirEntry of Ende.readDir(directory)) {
if (dirEntry.isFile)
documents.push(dirEntry);
}
@@ -28,7 +28,7 @@ export default async(directory: string): Promise<{ filename: string; }[]> => {
} catch(error) {
console.error(`Error reading directory contents: ${String(error)}`);
} finally {
- // deno-lint-ignore no-unsafe-finally
+ // ende-lint-ignore no-unsafe-finally
return documentArray;
}
}