MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / copyPath

Function copyPath

scripts/build-harmony-har.js:247–260  ·  view source on GitHub ↗
(sourcePath, targetPath)

Source from the content-addressed store, hash-verified

245}
246
247function copyPath(sourcePath, targetPath) {
248 const stats = fs.statSync(sourcePath);
249 if (stats.isDirectory()) {
250 fs.cpSync(sourcePath, targetPath, {
251 recursive: true,
252 force: true,
253 filter: (entry) => path.basename(entry) !== '.git',
254 });
255 return;
256 }
257
258 fs.mkdirSync(path.dirname(targetPath), { recursive: true });
259 fs.copyFileSync(sourcePath, targetPath);
260}
261
262function ensureWrapperProject() {
263 wrapperProjectFiles.forEach((relativePath) => {

Callers 1

syncHarmonyNativeSourcesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected