GFileInfo: g_file_query_info() attribute string broken, remote filesystems.
I was having issues with finding the content-type of a file on smb:// with an application, so I wrote a test to investigate.
It seems like the attribute string in g_file_query_info() has incorrect behavior.
I think wildcard must only be supported at the end of the string, so the one I can't really explain is "standard::fast-content-type"
not working in combination with smb:// or other network FSes.
Weird also, is the application/x-zerosize
when the file is local; the file is not zero-sized.
g_file_query_info() attributes | file:// | smb:// |
---|---|---|
"*" | standard::content-type: application/x-zerosize standard::fast-content-type: application/octet-stream |
standard::content-type: (null) standard::fast-content-type: application/octet-stream |
"standard::content-type" | standard::content-type: application/x-zerosize standard::fast-content-type: (null) |
standard::content-type: (null) standard::fast-content-type: (null) |
"standard::fast-content-type" | standard::content-type: (null) standard::fast-content-type: application/octet-stream |
standard::content-type: (null) standard::fast-content-type: (null) |
"standard::*content-type" | standard::content-type: (null) standard::fast-content-type: (null) |
standard::content-type: (null) standard::fast-content-type: (null) |
"standard::*" | standard::content-type: application/x-zerosize standard::fast-content-type: application/octet-stream |
standard::content-type: (null) standard::fast-content-type: application/octet-stream |