Skip to content

FileSystemManager.saveFileSync ​

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

Save a temporary file locally

The synchronous version of FileSystemManager.saveFile

Parameters

  • string tempFilePath: Temporary storage file path

  • string filePath: Optional. Path where the file will be stored.

Return Value

  • string savedFilePath: Path of the stored file

Parameters of the captured exception

  • string error: Returns the error message; see the table below for valid values

Valid values of error:

Error messageDescription
no such file or directoryThe specified tempFilePath does not exist, or is a directory, or the parent directory of the explicitly passed filePath does not exist
permission deniedNo write permission for the specified target file path