setAttributeStatus

open fun setAttributeStatus(attribute: String, status: FileAttributeStatus): Boolean

Sets the attribute status for an attribute key. This is only needed by external code that implement g_file_set_attributes_from_info() or similar functions.

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

Return

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

Since

2.22

Parameters

attribute

a file attribute key

status

a #GFileAttributeStatus