MCPcopy
hub / github.com/pingcap/docs-cn / copySingleFileSync

Function copySingleFileSync

scripts/utils.js:98–102  ·  view source on GitHub ↗
(srcPath, destPath)

Source from the content-addressed store, hash-verified

96};
97
98export const copySingleFileSync = (srcPath, destPath) => {
99 checkDestDir(destPath);
100
101 fs.copyFileSync(srcPath, destPath);
102};
103
104export const copyFileWithCustomContentSync = (srcPath, destPath, handler) => {
105 const srcContent = fs.readFileSync(srcPath).toString();

Callers 1

copyDirectorySyncFunction · 0.85

Calls 1

checkDestDirFunction · 0.85

Tested by

no test coverage detected