mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-19 15:14:49 +00:00
chore: generate
This commit is contained in:
@@ -409,9 +409,7 @@ export class FileService extends ServiceMap.Service<FileService, FileService.Ser
|
|||||||
dirs.add(entry.name + "/")
|
dirs.add(entry.name + "/")
|
||||||
|
|
||||||
const base = path.join(instance.directory, entry.name)
|
const base = path.join(instance.directory, entry.name)
|
||||||
const children = await fs.promises
|
const children = await fs.promises.readdir(base, { withFileTypes: true }).catch(() => [] as fs.Dirent[])
|
||||||
.readdir(base, { withFileTypes: true })
|
|
||||||
.catch(() => [] as fs.Dirent[])
|
|
||||||
for (const child of children) {
|
for (const child of children) {
|
||||||
if (!child.isDirectory()) continue
|
if (!child.isDirectory()) continue
|
||||||
if (shouldIgnoreNested(child.name)) continue
|
if (shouldIgnoreNested(child.name)) continue
|
||||||
|
|||||||
Reference in New Issue
Block a user