I just tried five or six ways to get this, but I’m a bit stumped.
I’m trying to get a list of files on removable drives - USB, CD, DVD, shared network or hard disk even.
On Linux, I’m cheating - we mount the disks as disk1-diskN, so I just looks for those.
On Mac, I get the list of files that are directories and non-hidden in /Volumes. But the root disk is in there and that’s pretty much the only one I don’t want - and I really don’t want it.
I tried comparing to T("/") - nope, it’s /Volumes etc. Can’t get the parent of / - that’s / too. Can’t get the linked folder of / etc.
Tried to compare the drive serial number and didn’t have luck either - maybe since the links on /Volumes are on the disk too?
Anyway, I really need:
isRootDisk () or a SpecialLocation:RootDisk to compare with maybe?
What did I miss?