File.copyAsync

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 gio.file.File

destination #GFile

flags gio.types.FileCopyFlags

set of #GFileCopyFlags

ioPriority int

the [I/O priority][io-priority] of the request

cancellable gio.cancellable.Cancellable

optional #GCancellable object, null to ignore

progressCallback gio.types.FileProgressCallback

function to callback with progress information, or null if progress information is not needed

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback to call when the request is satisfied