(path: string)
| 409 | } |
| 410 | |
| 411 | const readDirectoryEntries = (path: string) => |
| 412 | Effect.map( |
| 413 | collectAsyncIterable("readDirectoryEntries", path, () => Deno.readDir(path)), |
| 414 | (entries) => entries.map((entry): FileSystem.DirectoryEntry => ({ name: entry.name, type: fileType(entry) })) |
| 415 | ) |
| 416 | |
| 417 | const readFile: FileSystem.FileSystem["readFile"] = (path) => |
| 418 | tryPromise("readFile", path, (signal) => Deno.readFile(path, { signal })) |
nothing calls this directly
no test coverage detected