MCPcopy Index your code
hub / github.com/darkreader/darkreader / copyEntry

Function copyEntry

tasks/copy.js:51–57  ·  view source on GitHub ↗
(path, {debug, platform})

Source from the content-addressed store, hash-verified

49
50 /** @type {(path: string, options: {debug: boolean; platform: any}) => Promise<void>} */
51 const copyEntry = async (path, {debug, platform}) => {
52 const cwdPath = getCwdPath(path);
53 const destDir = getDestDir({debug, platform});
54 const src = `${srcDir}/${cwdPath}`;
55 const dest = `${destDir}/${cwdPath}`;
56 await copyFile(src, dest);
57 };
58
59 const copyAll = async ({platforms, debug}) => {
60 const promises = [];

Callers 2

copyAllFunction · 0.85
onChangeFunction · 0.85

Calls 3

getDestDirFunction · 0.90
copyFileFunction · 0.90
getCwdPathFunction · 0.85

Tested by

no test coverage detected