File.copyAsync

Copies the file source to the location specified by destination asynchronously. For details of the behaviour, see g_file_copy(). If progress_callback is not NULL, then that function that will be called just like in g_file_copy(), however the callback will run in the main loop, not in the thread that is doing the I/O operation. When the operation is finished, callback will be called. You can then call g_file_copy_finish() to get the result of the operation.

Parameters

destination File

destination GFile

flags GFileCopyFlags

set of GFileCopyFlags

ioPriority int

the I/O priority of the request

cancellable Cancellable

optional GCancellable object, NULL to ignore. [allow-none]

progressCallback GFileProgressCallback

function to callback with progress information, or NULL if progress information is not needed. [allow-none]

progressCallbackData void*

user data to pass to progress_callback. closure

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the request is satisfied

userData void*

the data to pass to callback function

Meta