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
destination | destination #GFile |
flags | set of #GFileCopyFlags |
ioPriority | the [I/O priority][io-priority] of the request |
cancellable | optional #GCancellable object, null to ignore |
progressCallback | function to callback with progress information, or null if progress information is not needed |
callback | a #GAsyncReadyCallback to call when the request is satisfied |