Nope Nope
Nope Nope

Reputation: 75

Test if network folder exists

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

Answers (1)

shmosel
shmosel

Reputation: 50776

Same as with any other directory. Just add a double slash before:

new File("//Groups/Admin").exists()

Upvotes: 1

Related Questions