MCPcopy Index your code
hub / github.com/EvoMap/evolver / _copyFileIfPresent

Function _copyFileIfPresent

src/forceUpdate.js:446–450  ·  view source on GitHub ↗
(src, dst)

Source from the content-addressed store, hash-verified

444}
445
446function _copyFileIfPresent(src, dst) {
447 if (!fs.existsSync(src)) return false;
448 fs.copyFileSync(src, dst);
449 return true;
450}
451
452function _restoreFileBackupIfPresent(backupPath, dstPath) {
453 if (!backupPath || !fs.existsSync(backupPath)) return false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected