File.replaceContentsFinish

Finishes an asynchronous replace of the given file. See g_file_replace_contents_async(). Sets new_etag to the new entity tag for the document, if present.

class File
int
replaceContentsFinish

Parameters

res AsyncResultIF

a GAsyncResult.

newEtag string

a location of a new entity tag for the document. This should be freed with g_free() when it is no longer needed, or NULL. out[allow-none]

Return Value

Type: int

TRUE on success, FALSE on failure.

Throws

GException on failure.

Meta