# string FileSystemManager.saveFileSync(string tempFilePath, string filePath)

with Promise style call: Supported

Mini Program plugin: Not supported

FileSystemManager.saveFile The synchronous version of

# parameter

# string tempFilePath

Temporary storage file path (Local path)

# string filePath

File path to store (Local path)

# Return value

# string savedFilePath

File path after storage (Local path)

# error

Error code Error message Introductions
fail tempFilePath file not exist Specified tempFilePath Cannot find file
fail permission denied, open "${filePath}" Specified filePath Path does not have write permissions
fail No such file or directory "${dirPath}" There is no parent directory
fail the maximum size of the file storage limit is exceeded Insufficient storage space
fail sdcard not mounted Android sdcard Mount failure