failed attempt at automatic index generation

This commit is contained in:
MapleLeaf
2021-12-30 11:48:14 -06:00
parent c15be04cdb
commit a4bd7736d5
9 changed files with 182 additions and 165 deletions

View File

@@ -0,0 +1,10 @@
import { stat } from "node:fs/promises"
export async function isFile(path: string) {
try {
const result = await stat(path)
return result.isFile()
} catch {
return false
}
}