FileInfo.setAttributeStatus

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.

class FileInfo
bool
setAttributeStatus
(
string attribute
,
GFileAttributeStatus status
)

Parameters

attribute string

a file attribute key

status GFileAttributeStatus

a #GFileAttributeStatus

Return Value

Type: bool

%TRUE if the status was changed, %FALSE if the key was not set.

Meta

Since

2.22