Okay, I’m missing something basic. I use the “ShowSelectFolderDialog” to allow the user to select a directory which I then store in a FolderItem property and store the NativePath in a listbox.
How do I know what drive the FolderItem is on? I can’t find the drive in either the FolderItem property (in debug mode) or in the NativePath or ShellPath.
Well the NativePath will include the drive information, because when the drive is mounted it has to appear as part of the overall file system. So on macOS, a drive named “Wiggy” will show up as:
/Volumes/Wiggy/
on Linux I think it’s:
/media/Wiggy/
Not sure on Windows, I suppose it’ll have one of these drive letters. So I suppose it’ll be: