We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9ed00 commit 0981b8eCopy full SHA for 0981b8e
1 file changed
packages/opencode/src/filesystem/index.ts
@@ -61,10 +61,12 @@ export namespace AppFileSystem {
61
return yield* Effect.tryPromise({
62
try: async () => {
63
const entries = await NFS.readdir(dirPath, { withFileTypes: true })
64
- return entries.map((e): DirEntry => ({
65
- name: e.name,
66
- type: e.isDirectory() ? "directory" : e.isSymbolicLink() ? "symlink" : e.isFile() ? "file" : "other",
67
- }))
+ return entries.map(
+ (e): DirEntry => ({
+ name: e.name,
+ type: e.isDirectory() ? "directory" : e.isSymbolicLink() ? "symlink" : e.isFile() ? "file" : "other",
68
+ }),
69
+ )
70
},
71
catch: (cause) => new FileSystemError({ method: "readDirectoryEntries", cause }),
72
})
0 commit comments