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

Function copyFile

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

Source from the content-addressed store, hash-verified

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

Callers 1

withStaticFilesFunction · 0.50

Calls 1

tryPromiseFunction · 0.70

Tested by 1

withStaticFilesFunction · 0.40