(method: string, nodeStatFn: typeof NFS.stat)
| 632 | catch: handleBadArgument(method) |
| 633 | }) |
| 634 | const statFactory = (method: string, nodeStatFn: typeof NFS.stat) => { |
| 635 | const nodeStat = effectify( |
| 636 | nodeStatFn, |
| 637 | handleErrnoException("FileSystem", method), |
| 638 | handleBadArgument(method) |
| 639 | ) |
| 640 | return (path: string) => Effect.flatMap(nodeStat(path, { bigint: true }), (stat) => makeFileInfo(stat, method)) |
| 641 | } |
| 642 | const stat = statFactory("stat", NFS.stat) |
| 643 | const lstat = statFactory("lstat", NFS.lstat) |
| 644 |
no test coverage detected