Gio.File.prototype.replace_contents_finish

function replace_contents_finish(res: Gio.AsyncResult): [ok: Boolean, new_etag: String] {
    // Gjs wrapper for g_file_replace_contents_finish()
}
  

Finishes an asynchronous replace of the given file. See Gio.File.prototype.replace_contents_async. Sets new_etag to the new entity tag for the document, if present.

res

a Gio.AsyncResult

ok

true on success, false on failure.

new_etag

a location of a new [entity tag][gfile-etag] for the document. This should be freed with GLib.free when it is no longer needed, or null