FileSystemManager.saveFile
JS
FileSystemManager.saveFile(Object object)Save a temporary file locally
This interface moves the temporary file, so after a successful call tempFilePath becomes unavailable
Parameters
- Object object: Input parameters; see the table below for details
Properties of object:
| Property | Type | Required | Description |
|---|---|---|---|
| tempFilePath | string | Yes | Temporary storage file path |
| filePath | string | No | Path where the file will be stored. |
| success | function | No | Callback function when the call succeeds |
| fail | function | No | Callback function when the call fails |
| complete | function | No | Callback function when the call completes |
Parameters of the success callback function
- Object res: Returns information about the stored file
Properties of res:
| Property | Type | Description |
|---|---|---|
| savedFilePath | string | Path of the stored file |
