On my Windows PC I have my NAS with network path \\nas
mounted as Z:\
Finding the root of a file on the filestore with Java 8
Paths.get("Z:\\\\Docs").getRoot();
gives me Z:\
how do I get \\nas
This code is not running as part of the GUI, therefore I do not have access to JFileChooser with currently selected file.