(path, options)
| 81 | tryPromise("link", existingPath, () => Deno.link(existingPath, newPath)) |
| 82 | |
| 83 | const makeDirectory: FileSystem.FileSystem["makeDirectory"] = (path, options) => |
| 84 | tryPromise("makeDirectory", path, () => |
| 85 | Deno.mkdir(path, { |
| 86 | recursive: options?.recursive ?? false, |
| 87 | ...(options?.mode === undefined ? {} : { mode: options.mode }) |
| 88 | })) |
| 89 | |
| 90 | const makeTempDirectoryFactory = (method: string): FileSystem.FileSystem["makeTempDirectory"] => (options) => |
| 91 | tryPromise(method, options?.directory, () => |
no test coverage detected