ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# .copyFileSync ### FileSystemManager.copyFileSync(string srcPath, string destPath) FileSystemManager.copyFile 的同步版本 #### 参数 ##### string srcPath 源文件路径,只可以是普通文件 ##### string destPath 目标文件路径 #### 错误 错误码错误信息说明fail permission denied, copyFile ${srcPath} -> ${destPath}指定目标文件路径没有写权限fail no such file or directory, copyFile ${srcPath} -> ${destPath}源文件不存在,或目标文件路径的上层目录不存在> 原文: <https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.copyFileSync.html>