(type: FileSystem.File.Type)
| 13 | } from "effect" |
| 14 | |
| 15 | const info = (type: FileSystem.File.Type): FileSystem.File.Info => ({ |
| 16 | type, |
| 17 | mtime: Option.none(), |
| 18 | atime: Option.none(), |
| 19 | birthtime: Option.none(), |
| 20 | dev: 0n, |
| 21 | ino: Option.none(), |
| 22 | mode: 0, |
| 23 | nlink: Option.none(), |
| 24 | uid: Option.none(), |
| 25 | gid: Option.none(), |
| 26 | rdev: Option.none(), |
| 27 | size: ByteSize.bytes(0), |
| 28 | blksize: Option.none(), |
| 29 | blocks: Option.none() |
| 30 | }) |
| 31 | |
| 32 | const failure = (_tag: PlatformError.SystemErrorTag, method: string, path: string) => |
| 33 | PlatformError.systemError({ _tag, module: "FileSystem", method, pathOrDescriptor: path }) |
no test coverage detected