MCPcopy Create free account
hub / github.com/observablehq/framework / copyFile

Function copyFile

src/create.ts:31–33  ·  view source on GitHub ↗
(sourcePath: string, outputPath: string)

Source from the content-addressed store, hash-verified

29 await mkdir(outputPath, options);
30 },
31 async copyFile(sourcePath: string, outputPath: string): Promise<void> {
32 await copyFile(sourcePath, outputPath);
33 },
34 async writeFile(outputPath: string, contents: string): Promise<void> {
35 await writeFile(outputPath, contents);
36 }

Callers 2

copyFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected