Gio.File.prototype.copy_attributes
function copy_attributes(destination: Gio.File, flags: Gio.FileCopyFlags, cancellable: Gio.Cancellable): Boolean { // Gjs wrapper for g_file_copy_attributes() }
Copies the file attributes from source to destination.
Normally only a subset of the file attributes are copied, those that are copies in a normal file copy operation (which for instance does not include e.g. owner). However if #G_FILE_COPY_ALL_METADATA is specified in flags, then all the metadata that is possible to copy is copied. This is useful when implementing move by copy + delete source.
- destination
a Gio.File to copy attributes to
- flags
a set of Gio.FileCopyFlags
- cancellable
optional Gio.Cancellable object, null to ignore
- Returns
true if the attributes were copied successfully, false otherwise.