Hi!
It appears that File::isOnRemovableDrive() does not work on MacOSX. I am trying to determine which folders (drives) in /Volumes/ are external drives. This is because on MacOSX, the internal root drive (often called Macintosh HD) can be located in “/Volumes” and I would like to skip it while scanning external drives in this location. I currently have 3 external drives connected to my computer so my /Volumes directory looks something like this:
- /Volumes/Macintosh HD/
- /Volumes/extDrive1/
- /Volumes/extDrive2/
- /Volumes/extDrive3/
File::isOnRemovableDrive() returns false for all directories even though 3 are removable/ejectable external drives. Is there a better way to determine on Mac OSX which drives in “/Volumes” are removable (external) drives? My goal is to only scan external drives on MacOSX.
Thanks in advance!