mirror of
https://github.com/develop202/migu_video.git
synced 2025-12-17 15:25:03 +08:00
添加体育
This commit is contained in:
@@ -40,5 +40,12 @@ function renameFileSync(oldFilePath, newFilePath) {
|
||||
}
|
||||
})
|
||||
}
|
||||
function copyFileSync(filePath, newFilePath, mode) {
|
||||
fs.copyFileSync(filePath, newFilePath, mode, err => {
|
||||
if (err) {
|
||||
throw new Error(`文件复制失败${filePath} -> ${newFilePath}`)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export { createFile, writeFile, appendFile, appendFileSync, readFileSync, renameFileSync }
|
||||
export { createFile, writeFile, appendFile, appendFileSync, readFileSync, renameFileSync, copyFileSync }
|
||||
|
||||
Reference in New Issue
Block a user