How to discern network drives?

Following up the topics linked below, it appears that the case of discerning whether a certain drive is a network drive is still unresolved for Windows.

(and for macOS, what we have is actually only the workaround provided by G-Mon).

Can something like a File::isOnNetworkDrive() be implemented along the lines of File::isOnRemovableDrive() and File::isOnHardDisk()

see:

and

Don’t trust “work around” that I came up with, it doesn’t work reliably.

For now I’ve given up and just expect the user to not be an idiot and not put their samples on a network drive. (Or maybe if their network is fast enough, that’s ok).

1 Like