I’ve noticed that the juce::FileBrowserComponent is unable to list the content of the C: and other physical drives (network drives seems to work ok), as juce::File(“C:”) is not recognized as directory:
I think the check should be something like:
if (root.isDirectory() || root.isRoot())
This seems to fix my issue, any chance to have this addressed ?
When I open the WidgetsDemo and select the “Files” tab, the contents of my “C:” drive are shown, and I can navigate around as normal. If I step into the constructor, it seems that File { "C:" }.isDirectory() returns true on my system.
I’m building with JUCE develop, on Windows 10 20H2.
I can click into folders in my C: drive, and then hit the ‘up’ button to go back to the root with no problems. I can also use the dropdown menu to switch between C and D drives, again without issues.
If you stick a breakpoint in File::isDirectory() in juce_win32_Files.cpp, what file attributes are reported for your root directories?
I understand now what it is, because i need to use long paths, i have enabled the \\?\ UNC paths, so \\?\C: is actually reported as a volume, not a directory.