mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
glocalfileinfo: Set is-backup attribute on Windows
Previously it was only being set on non-Windows platforms. For consistency, always set it on Windows too. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2934
This commit is contained in:
parent
8c473c5353
commit
a4e597520a
@ -2053,6 +2053,8 @@ _g_local_file_info_get (const char *basename,
|
||||
(stat_ok && S_ISREG (_g_stat_mode (&statbuf))))
|
||||
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_STANDARD_IS_BACKUP, TRUE);
|
||||
#else
|
||||
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_STANDARD_IS_BACKUP, FALSE);
|
||||
|
||||
g_file_info_set_is_hidden (info, (statbuf.attributes & FILE_ATTRIBUTE_HIDDEN));
|
||||
|
||||
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_DOS_IS_ARCHIVE,
|
||||
|
Loading…
Reference in New Issue
Block a user