file_replace_contents_bytes


Description:


public Future file_replace_contents_bytes (File file, Bytes contents, string? etag, bool make_backup, FileCreateFlags flags)

Wraps [method@Gio.

File.replace_contents_bytes_async]

Parameters:

file

a [iface@Gio.File]

contents

a [struct@GLib.Bytes]

etag

the etag or null

make_backup

if a backup file should be created

flags

a set of [flags@Gio.FileCreateFlags]

Returns:

a [class@Dex.Future] which resolves to the new etag. Therefore, it is possible to be null without an error having occurred.


Namespace: Dex
Package: libdex-1