File.createAsync

void createAsync(gio.types.FileCreateFlags flags, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously creates a new file and returns an output stream for writing to it. The file must not already exist.

For more details, see gio.file.File.create which is the synchronous version of this call.

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

Parameters

flagsa set of #GFileCreateFlags
ioPrioritythe I/O priority of the request
cancellableoptional #GCancellable object, null to ignore
callbacka #GAsyncReadyCallback to call when the request is satisfied