FileInfo.setAttributeStatus

Sets the attribute status for an attribute key. This is only needed by external code that implement gio.file.File.setAttributesFromInfo or similar functions.

The attribute must exist in info for this to work. Otherwise false is returned and info is unchanged.

class FileInfo
bool
setAttributeStatus

Parameters

attribute string

a file attribute key

status gio.types.FileAttributeStatus

a #GFileAttributeStatus

Return Value

Type: bool

true if the status was changed, false if the key was not set.