FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kStorage_Copy ( kStorage  storage,
const kChar sourcePath,
const kChar destPath,
kCallbackFx  progress,
kPointer  context 
)

Copies a file from one location to another within sensor storage.

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.

Parameters
storageStorage object.
sourcePathSource file path.
destPathDestination file path.
progressOptional progress callback (can be kNULL).
contextCallback context.
Returns
Operation status.