g_file_enumerate_children does not automatically include file name attribues on windows, but it does on linux
Submitted by Mike Henning (drawoc)
Link to original bug (#733528)
Description
If you call g_file_enumerate_children like this:
g_file_enumerate_children (dir, G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "," G_FILE_ATTRIBUTE_STANDARD_TYPE, G_FILE_QUERY_INFO_NONE, NULL, NULL);
then the GFileInfos in the returned enumerator will have their name attribute available on linux, but not on windows. (Note that the original call did not include G_FILE_ATTRIBUTE_STANDARD_NAME)
In other words, calling g_file_info_get_name will return null on windows, but will return the correct filename on linux, whenever G_FILE_ATTRIBUTE_STANDARD_NAME is not requested.
I'm not sure what the desired behavior is, but linux and windows should probably behave the same.
(When G_FILE_ATTRIBUTE_STANDARD_NAME is passed to g_file_enumerate_children, both platforms behave identically and will return the file name.)