mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +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))))
|
(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);
|
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_STANDARD_IS_BACKUP, TRUE);
|
||||||
#else
|
#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_is_hidden (info, (statbuf.attributes & FILE_ATTRIBUTE_HIDDEN));
|
||||||
|
|
||||||
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_DOS_IS_ARCHIVE,
|
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_DOS_IS_ARCHIVE,
|
||||||
|
Loading…
Reference in New Issue
Block a user