TypeScript API Documentation for DEX
API Version: 1
Library Version: 1.0.0
Generated with TypeDoc via ts-for-gir v5.2.0
Since 1.2
Wraps Gio.File.replace_contents_async.
This function copies contents into a GLib.Bytes so the caller does not need to keep the buffer alive for the duration of the operation.
contents
a Gio.File
the contents to write
the etag or null
null
if a backup file should be created
a set of Gio.FileCreateFlags
a Dex.Future which resolves to the new etag, or null if no etag is available.
1.2
Wraps Gio.File.replace_contents_async.
This function copies
contentsinto a GLib.Bytes so the caller does not need to keep the buffer alive for the duration of the operation.