setting file attributes
Submitted by John E
Link to original bug (#641705)
Description
I'm using this code to attempt to set a file's 'hidden' attribute (glib-win32):-
void SetHiddenAttribute (GFile* pFile, GFileInfo* pInfo, GError** ppError) { /* 'pInfo' was already initialized for the 'hidden' * attribute, before calling this function */ g_file_info_set_is_hidden (pinfo, true);
g_file_set_attributes_from_info (pFile, pInfo,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, ppError);
}
Even if the supplied parameters are valid, g_file_set_attributes_from_info() seems to return this error:-
error code 15 : message=0x02894d80 "Setting attribute standard::is-hidden not supported"
After a discussion on the gtk-app-devel mailing list, the consensus was that 'getting' a hidden attribute is currently supported, but not 'setting'. In fact, I haven't had much success getting or setting anything to do with attributes / modification times etc on the Windows platform (although to be fair, I haven't tried very many).
Can anyone tell me if the above code should work? If not could I propose it as a feature request?
Version: 2.24.x