FileSystemManager.copyFile
FileSystemManager.copyFile(Object object)
复制文件
输入
继承标准对象输入,扩展属性描述:
| 属性 | 类型 | 默认值 | 是否必填 | 说明 |
|---|---|---|---|---|
| srcPath | string | 是 | 源文件路径,只可以是普通文件 | |
| destPath | string | 是 | 目标文件路径 |
错误
fail 回调函数接收的对象扩展属性:
| 属性 | 类型 | 说明 | 支持版本 |
|---|---|---|---|
| errMsg | string | 错误信息 |
| 值 | 说明 |
|---|---|
| fail permission denied, unzip ${zipFilePath} -> ${destPath} | 指定目标文件路径没有写权限 |
| fail no such file or directory, unzip ${zipFilePath} -> "${destPath} | 源文件不存在,或目标文件路径的上层目录不存在 |