Reputation: 75
How can I test if a network folder exists in Windows using Java?
For example, if there was a network folder named "Groups" and it listed the groups a user was in, how could I see if the network folder "Groups\Admin" exists?
Upvotes: 1
Views: 828
Reputation: 50776
Same as with any other directory. Just add a double slash before:
new File("//Groups/Admin").exists()
Upvotes: 1