MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / copy

Function copy

scripts/utils.js:61–70  ·  view source on GitHub ↗
(src, dest)

Source from the content-addressed store, hash-verified

59}
60
61export function copy(src, dest) {
62 try {
63 const targetFilePath = path.resolve(dest, path.basename(src));
64 fs.writeFileSync(targetFilePath, fs.readFileSync(src));
65 } catch (error) {
66 throw new Error(
67 `Received an error: [${error}] while trying to copy: ${src} -> ${dest}`,
68 );
69 }
70}
71
72export function copyRecursive(src, dest) {
73 try {

Callers 1

copyRecursiveFunction · 0.85

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected