copyFile
Copies a file from the source path to the target path.
Parameters
sourcePath
The path of the source file.
targetPath
The path where the file will be copied to.
Throws
If an error occurs during the copy operation.
If the operation is cancelled.