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

Function copyDirectorySync

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

Source from the content-addressed store, hash-verified

146};
147
148export const copyDirectorySync = (srcPath, destPath) => {
149 const allFiles = getAllFiles(srcPath);
150 allFiles.forEach((filePath) => {
151 const relativePath = path.relative(srcPath, filePath);
152 copySingleFileSync(filePath, destPath + relativePath);
153 });
154};
155
156export const copyDirectoryWithCustomContentSync = (
157 srcPath,

Callers

nothing calls this directly

Calls 2

getAllFilesFunction · 0.85
copySingleFileSyncFunction · 0.85

Tested by

no test coverage detected