(path, options)
| 326 | } |
| 327 | |
| 328 | const open: FileSystem.FileSystem["open"] = (path, options) => { |
| 329 | const append = options?.flag?.startsWith("a") ?? false |
| 330 | return Effect.map( |
| 331 | Effect.acquireRelease( |
| 332 | tryPromise("open", path, () => Deno.open(path, openOptions(options?.flag, options?.mode))), |
| 333 | (file) => close(file, "open", path) |
| 334 | ), |
| 335 | (file) => new FileImpl(file, append) |
| 336 | ) |
| 337 | } |
| 338 | |
| 339 | const makeTempFileFactory = (method: string): FileSystem.FileSystem["makeTempFile"] => (options) => |
| 340 | tryPromise(method, options?.directory, () => |
nothing calls this directly
no test coverage detected