Mapped drives not included in File.listRoots()
Java
1
Posts
1
Posters
0
Views
1
Watching
-
Why is that the Mapped Drives is not listed on this method? It can read Flash Drives. I am using Windows 10, is this the factor? I tried opening a JFileChooser and mapped drives is also not found. I also try using the file exist
System.out.println(new File("Z:\\test.txt").exists()); //returns false
System.out.println(new File("\\\\192.168.23.111\\Shared Files\\test.txt").exists()); //returns true
- Be who you are and say what you feel because those who mind don't matter and those who matter don't mind. - Most of the problem in your life are due to two reasons: you act without thinking, or think without acting.