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

Function stat

packages/platform/deno/src/DenoFileSystem.ts:378–382  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

376 tryPromise("rename", oldPath, () => Deno.rename(oldPath, newPath))
377
378const stat: FileSystem.FileSystem["stat"] = (path) =>
379 Effect.map(
380 tryPromise("stat", path, () => Deno.stat(path)),
381 makeFileInfo
382 )
383
384const symlink: FileSystem.FileSystem["symlink"] = (target, path) =>
385 tryPromise("symlink", target, () => Deno.symlink(target, path))

Callers 4

watchNativeFunction · 0.70
watchFunction · 0.70
watchNodeFunction · 0.50
watchFunction · 0.50

Calls 3

tryPromiseFunction · 0.70
mapMethod · 0.45
statMethod · 0.45

Tested by

no test coverage detected