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

Function copyFile

packages/platform/deno/src/DenoFileSystem.ts:72–73  ·  view source on GitHub ↗
(fromPath, toPath)

Source from the content-addressed store, hash-verified

70 }))
71
72const copyFile: FileSystem.FileSystem["copyFile"] = (fromPath, toPath) =>
73 tryPromise("copyFile", fromPath, () => Deno.copyFile(fromPath, toPath))
74
75const chmod: FileSystem.FileSystem["chmod"] = (path, mode) => tryPromise("chmod", path, () => Deno.chmod(path, mode))
76

Callers 1

withStaticFilesFunction · 0.50

Calls 1

tryPromiseFunction · 0.70

Tested by 1

withStaticFilesFunction · 0.40