首页 微信小游戏 文件

微信小游戏开发文档-小游戏文件API string FileSystemManager.copyFileSync(string srcPath, string destPath)

微信小游戏开发文档-小游戏文件API string FileSystemManager.copyFileSync(string srcPath, string destPath)

上传时间:2018-07-29阅读数:509

string FileSystemManager.copyFileSync(string srcPath, string destPath)

FileSystemManager.copyFile 的同步版本

参数

string srcPath

源文件路径,只可以是普通文件

string destPath

目标文件路径

返回值

string errMsg

错误信息

errMsg 的合法值

说明
fail permission denied, copyFile ${srcPath} -> ${destPath} 指定目标文件路径没有写权限
fail no such file or directory, copyFile ${srcPath} -> ${destPath} 源文件不存在,或目标文件路径的上层目录不存在
意见反馈 回到顶部
咨询帮助
咨询帮助
微信公众号
微信公众号