move_async


Description:

[ Version ( since = "2.72" ) ]
public virtual async bool move_async (File destination, FileCopyFlags flags, int io_priority = DEFAULT, Cancellable? cancellable = null, FileProgressCallback? progress_callback) throws Error

Asynchronously moves a file this to the location of destination.

For details of the behaviour, see move.

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

When the operation is finished, callback will be called. You can then call move_async.end to get the result of the operation.

Parameters:

this

File pointing to the source location

destination

File pointing to the destination location

flags

set of FileCopyFlags

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, null to ignore

progress_callback

FileProgressCallback function for updates

callback

a TaskReadyCallback to call when the request is satisfied

progress_callback_data

gpointer to user data for the callback function

user_data

the data to pass to callback function