File.replaceContentsFinish

bool replaceContentsFinish(gio.async_result.AsyncResult res, out string newEtag)

Finishes an asynchronous replace of the given file. See [gio.file.File.replaceContentsAsync]. Sets new_etag to the new entity tag for the document, if present.

Parameters

resa #GAsyncResult
newEtaga location of a new entity tag for the document. This should be freed with [glib.global.gfree] when it is no longer needed, or null

Returns

true on success, false on failure.

Throws

[ErrorWrap]