mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-22 18:22:11 +01:00
glocalfileinfo: Set standard::type on Windows if stat failed
Not sure if that should be done on UNIX too
This commit is contained in:
parent
acf94da8a0
commit
41faeeab7b
@ -2045,6 +2045,10 @@ _g_local_file_info_get (const char *basename,
|
||||
|
||||
if (attributes_set)
|
||||
{
|
||||
g_file_info_set_file_type (info,
|
||||
(attributes & FILE_ATTRIBUTE_DIRECTORY) ?
|
||||
G_FILE_TYPE_DIRECTORY : G_FILE_TYPE_REGULAR);
|
||||
|
||||
g_file_info_set_is_hidden (info, (attributes & FILE_ATTRIBUTE_HIDDEN));
|
||||
|
||||
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_DOS_IS_ARCHIVE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user