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

Function renameFileSync

utils/fileUtil.js:36–42  ·  view source on GitHub ↗
(oldFilePath, newFilePath)

Source from the content-addressed store, hash-verified

34}
35
36function renameFileSync(oldFilePath, newFilePath) {
37 fs.renameSync(oldFilePath, newFilePath, err => {
38 if (err) {
39 throw new Error(`文件重命名失败${oldFilePath} -> ${newFilePath}`)
40 }
41 })
42}
43function copyFileSync(filePath, newFilePath, mode) {
44 fs.copyFileSync(filePath, newFilePath, mode, err => {
45 if (err) {

Callers 4

fetchURLByzbpro.jsFile · 0.90
fetchURLByAndroid720pFunction · 0.90
updateTVFunction · 0.90
updatePEFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected