Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kFile_CopyEx ( const kChar source,
const kChar destination,
kCallbackFx  progress,
kPointer  context 
)

Copies a file to the specified destination with progress feedback.

The specified callback will be invoked to provide feedback on the progress of the operation. The callback 'args' parameter will receive a k32u value representing the percentage completed. The callback is guaranteed to be called at least once if the operation is successful, with a progress value of 100%.

Parameters
sourceSource file path.
destinationDestination file path.
progressOptional progress callback (can be kNULL).
contextCallback context.
Returns
Operation status.