FileSystemManager.saveFileSync
JS
string FileSystemManager.saveFileSync(
string tempFilePath,
string filePath)保存临时文件到本地
是 FileSystemManager.saveFile 的同步版本
参数
string tempFilePath: 临时存储文件路径
string filePath: 要存储的文件路径
返回值
- string savedFilePath: 存储后的文件路径
捕获异常的参数
- string error: 返回错误信息,具体合法值见下图
error 的合法值说明:
| 错误信息 | 说明 |
|---|---|
| no such file or directory | 指定的 tempFilePath 文件不存在,或是一个目录 |
| permission denied | 指定目标文件路径没有写权限 |