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

Function copy

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

tryPromiseFunction · 0.70

Tested by

no test coverage detected