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

The synchronous version of FileSystemManager.saveFile.

# Parameters

# string tempFilePath

Path to the temporarily stored files

# string filePath

Path to save the files

# Return Values

# number savedFilePath

Path to the saved files

# Errors

Error Code Error Message Description
fail tempFilePath file not exist No file found with the specified tempFilePath
fail permission denied, open "${filePath}" No write permission on the specified filePath
fail no such file or directory "${dirPath}" The upper-layer directory does not exist