添加体育

This commit is contained in:
test
2025-12-10 10:43:18 +08:00
parent 31f9c9ffae
commit dcd069b4c4
15 changed files with 299 additions and 1419 deletions

View File

@@ -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 }