replace_readwrite_async


Description:

public virtual async FileIOStream replace_readwrite_async (string? etag, bool make_backup, FileCreateFlags flags, int io_priority = DEFAULT, Cancellable? cancellable = null) throws Error

Asynchronously overwrites the file in read-write mode, replacing the contents, possibly creating a backup copy of the file first.

For more details, see replace_readwrite which is the synchronous version of this call.

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

Parameters:

this

input File

etag

an entity tag for the current File, or null to ignore

make_backup

true if a backup should be created

flags

a set of FileCreateFlags

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, null to ignore

callback

a AsyncReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function