File.moveAsync

void moveAsync(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)

Asynchronously moves a file source to the location of destination. For details of the behaviour, see gio.file.File.move.

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

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

Parameters

destination#GFile pointing to the destination location
flagsset of #GFileCopyFlags
ioPrioritythe I/O priority of the request
cancellableoptional #GCancellable object, null to ignore
progressCallback#GFileProgressCallback function for updates
callbacka #GAsyncReadyCallback to call when the request is satisfied