OpenTUI is here (#2685)
This commit is contained in:
parent
81c617770d
commit
96bdeb3c7b
1 changed files with 8455 additions and 712 deletions
|
|
@ -284,7 +284,9 @@ export namespace File {
|
|||
}
|
||||
const resolved = dir ? path.join(Instance.directory, dir) : Instance.directory
|
||||
const nodes: Node[] = []
|
||||
for (const entry of await fs.promises.readdir(resolved, { withFileTypes: true })) {
|
||||
for (const entry of await fs.promises.readdir(resolved, {
|
||||
withFileTypes: true,
|
||||
})) {
|
||||
if (exclude.includes(entry.name)) continue
|
||||
const fullPath = path.join(resolved, entry.name)
|
||||
const relativePath = path.relative(Instance.directory, fullPath)
|
||||
|
|
|
|||
Loading…
Reference in a new issue