MCPcopy Create free account
hub / github.com/develop202/migu_video / copyFileSync

Function copyFileSync

utils/fileUtil.js:43–49  ·  view source on GitHub ↗
(filePath, newFilePath, mode)

Source from the content-addressed store, hash-verified

41 })
42}
43function copyFileSync(filePath, newFilePath, mode) {
44 fs.copyFileSync(filePath, newFilePath, mode, err => {
45 if (err) {
46 throw new Error(`文件复制失败${filePath} -> ${newFilePath}`)
47 }
48 })
49}
50
51export { createFile, writeFile, appendFile, appendFileSync, readFileSync, renameFileSync, copyFileSync }

Callers 1

updatePEFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected