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

Function copy

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

Source from the content-addressed store, hash-verified

63}
64
65const copy: FileSystem.FileSystem["copy"] = (fromPath, toPath, options) =>
66 tryPromise("copy", fromPath, () =>
67 denoCopy(fromPath, toPath, {
68 overwrite: options?.overwrite ?? false,
69 preserveTimestamps: options?.preserveTimestamps ?? false
70 }))
71
72const copyFile: FileSystem.FileSystem["copyFile"] = (fromPath, toPath) =>
73 tryPromise("copyFile", fromPath, () => Deno.copyFile(fromPath, toPath))

Callers

nothing calls this directly

Calls 1

tryPromiseFunction · 0.70

Tested by

no test coverage detected