FileSystemManager.saveFile
Requires:
BaseKit≥2.4.3
Platforms:
iOSAndroid
Method signature
FileSystemManager.saveFile(params: )Description
Save a copy of the file to the target path.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
tempFilePath | string | Yes | Temporary path of the file to store |
filePath | string | Yes | Target path where the file will be stored |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | (params: Object) => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
success callback parameters
| Property | Type | Description | Since |
|---|---|---|---|
savedFilePath | string | [Deprecated, not recommended] Path of the stored file | v3.2.6 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None