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 message | Description |
|---|---|
| no such file or directory | The specified tempFilePath does not exist, or is a directory, or the parent directory of the explicitly passed filePath does not exist |
| permission denied | No write permission for the specified target file path |
