File.copyAsync

void copyAsync(gio.file.File destination, gio.types.FileCopyFlags flags, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.FileProgressCallback progressCallback = null, gio.types.AsyncReadyCallback callback = null)

Copies the file source to the location specified by destination asynchronously. For details of the behaviour, see gio.file.File.copy.

If progress_callback is not null, then that function that will be called just like in gio.file.File.copy. The callback will run in the default main context of the thread calling gio.file.File.copyAsync — the same context as callback is run in.

When the operation is finished, callback will be called. You can then call gio.file.File.copyFinish to get the result of the operation.

Parameters

destinationdestination #GFile
flagsset of #GFileCopyFlags
ioPrioritythe I/O priority of the request
cancellableoptional #GCancellable object, null to ignore
progressCallbackfunction to callback with progress information, or null if progress information is not needed
callbacka #GAsyncReadyCallback to call when the request is satisfied