chore: generate

pull/19480/merge
opencode-agent[bot] 2026-03-28 14:26:45 +00:00
parent aa9ed001d3
commit 0981b8eb71
1 changed files with 6 additions and 4 deletions

View File

@ -61,10 +61,12 @@ export namespace AppFileSystem {
return yield* Effect.tryPromise({
try: async () => {
const entries = await NFS.readdir(dirPath, { withFileTypes: true })
return entries.map((e): DirEntry => ({
name: e.name,
type: e.isDirectory() ? "directory" : e.isSymbolicLink() ? "symlink" : e.isFile() ? "file" : "other",
}))
return entries.map(
(e): DirEntry => ({
name: e.name,
type: e.isDirectory() ? "directory" : e.isSymbolicLink() ? "symlink" : e.isFile() ? "file" : "other",
}),
)
},
catch: (cause) => new FileSystemError({ method: "readDirectoryEntries", cause }),
})