codecamp

FileSystemManager.copyFile

FileSystemManager.copyFile(Object object)

复制文件


输入

继承标准对象输入,扩展属性描述:

属性类型默认值是否必填说明
srcPathstring源文件路径,只可以是普通文件
destPathstring目标文件路径


错误

fail 回调函数接收的对象扩展属性:

属性类型说明支持版本
errMsgstring错误信息
说明
fail permission denied, unzip ${zipFilePath} -> ${destPath}指定目标文件路径没有写权限
fail no such file or directory, unzip ${zipFilePath} -> "${destPath}源文件不存在,或目标文件路径的上层目录不存在


FileSystemManager.accessSync
FileSystemManager.copyFileSync
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定