copy_attributes
Description:
public bool copy_attributes (File destination, FileCopyFlags flags, Cancellable? cancellable = null) throws Error
Copies the file attributes from this 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.
Parameters:
this |
a File with attributes |
destination |
a File to copy attributes to |
flags |
a set of FileCopyFlags |
cancellable |
optional Cancellable object, null to ignore |
Returns:
true if the attributes were copied successfully, false otherwise. |