file with the given
contents of length bytes. etag will replace the document's
current entity tag.gFileReplaceContentsAsync(object, contents, length, etag, make.backup, flags = "G_FILE_CREATE_NONE", cancellable = NULL, callback, user.data = NULL)objectGFile.contentslengthcontents in bytes.etagfile, or NULLmake.backupTRUE if a backup should be created.flagsGFileCreateFlags.cancellableGCancellable object, NULL to ignore.callbackGAsyncReadyCallback to call when the request is satisfieduser.datacallback will be called with
user.user data, and the operation can be finalized with
gFileReplaceContentsFinish.
If cancellable is not NULL, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error G_IO_ERROR_CANCELLED will be returned.
If make.backup is TRUE, this function will attempt to
make a backup of file.