MCPcopy Create free account
hub / github.com/Effect-TS/effect / info

Function info

packages/effect/test/FileSystem.test.ts:15–30  ·  view source on GitHub ↗
(type: FileSystem.File.Type)

Source from the content-addressed store, hash-verified

13} from "effect"
14
15const 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
32const failure = (_tag: PlatformError.SystemErrorTag, method: string, path: string) =>
33 PlatformError.systemError({ _tag, module: "FileSystem", method, pathOrDescriptor: path })

Callers 2

makeFileSystemFunction · 0.70
FileSystem.test.tsFile · 0.70

Calls 1

bytesMethod · 0.45

Tested by

no test coverage detected