source to the location specified by destination.
Can not handle recursive copies of directories.gFileCopy(object, destination, flags = "G_FILE_COPY_NONE", cancellable = NULL, progress.callback, progress.callback.data, .errwarn = TRUE)GFile.GFileGFileCopyFlagsGCancellable object, NULL to ignore.progress.callbackTRUE on success, FALSE otherwise.GError to set on error, or NULLdestination file is overwritten.
If the flag source symlink will be copied.
If cancellable is not NULL, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error G_IO_ERROR_CANCELLED will be returned.
If progress.callback is not NULL, then the operation can be monitored by
setting this to a GFileProgressCallback function. progress.callback.data
will be passed to this function. It is guaranteed that this callback will
be called after all data has been transferred with the total number of bytes
copied during the operation.
If the source file does not exist then the G_IO_ERROR_NOT_FOUND
error is returned, independent on the status of the destination.
If GFile object itself (not the on-disk
file), see gFileDup.