|
FireSync API
|
| kStatus kStorage_DownloadToFile | ( | kStorage | storage, |
| const kChar * | sourcePath, | ||
| const kChar * | destPath, | ||
| kCallbackFx | progress, | ||
| kPointer | context | ||
| ) |
Copies a file from node storage to the specified local destination.
The destination file will be overwritten if it already exists.
If the remote node supports progress feedback, the specified callback will be invoked to provide updates on the progress of the operation. The callback 'args' parameter will receive a k32u value representing the percentage completed.
| storage | Storage object. |
| sourcePath | Source file path. |
| destPath | Destination file path. |
| progress | Optional progress callback (can be kNULL). |
| context | Callback context. |