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

Function copyDirectoryWithCustomContentSync

scripts/utils.js:156–166  ·  view source on GitHub ↗
(
  srcPath,
  destPath,
  handler
)

Source from the content-addressed store, hash-verified

154};
155
156export const copyDirectoryWithCustomContentSync = (
157 srcPath,
158 destPath,
159 handler
160) => {
161 const allFiles = getAllFiles(srcPath);
162 allFiles.forEach((filePath) => {
163 const relativePath = path.relative(srcPath, filePath);
164 copyFileWithCustomContentSync(filePath, destPath + relativePath, handler);
165 });
166};
167
168export const astNode2mdStr = (astNode) => {
169 const result = toMarkdown(astNode, {

Callers

nothing calls this directly

Calls 2

getAllFilesFunction · 0.85

Tested by

no test coverage detected