Method

GioFilereplace_contents_finish

Declaration

gboolean
g_file_replace_contents_finish (
  GFile* file,
  GAsyncResult* res,
  char** new_etag,
  GError** error
)

Description

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.

Parameters

res GAsyncResult
 

A GAsyncResult.

 The data is owned by the caller of the function.
new_etag char**
 

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

 The argument will be set by the function.
 The argument can be set to NULL.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success, FALSE on failure.