File.copyAttributes

bool copyAttributes(gio.file.File destination, gio.types.FileCopyFlags flags, gio.cancellable.Cancellable cancellable = null)

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 gio.types.FileCopyFlags.AllMetadata 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.

Parameters

destinationa #GFile to copy attributes to
flagsa set of #GFileCopyFlags
cancellableoptional #GCancellable object, null to ignore

Returns

true if the attributes were copied successfully,

false otherwise.

Throws