number FileSystemManager.saveFileSync(string tempFilePath, string filePath)

FileSystemManager.saveFile 的同步版本

参数

string tempFilePath

临时存储文件路径 (本地路径)

string filePath

要存储的文件路径 (本地路径)

返回值

number savedFilePath

存储后的文件路径 (本地路径)

错误

错误码错误信息说明
fail tempFilePath file not exist指定的 tempFilePath 找不到文件
fail permission denied, open "${filePath}"指定的 filePath 路径没有写权限
fail no such file or directory "${dirPath}"上级目录不存在
fail the maximum size of the file storage limit is exceeded存储空间不足