FileInfo.setAttributeStatus

bool setAttributeStatus(string attribute, gio.types.FileAttributeStatus status)

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.

Parameters

attributea file attribute key
statusa #GFileAttributeStatus

Returns

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