Well, this question refers directly to windows 7.
I run the same code on windows xp and on windows 7.
In windows XP it's true, and in windows 7 it's false!!
if (file.exists() || file.getAbsoluteFile().exists())
Any ideas?
The URL is to another server where the file is located.
EDITED
The user has permission to view/create/delete/edit the directory. I tried from that windows 7 to access by Run option of windows the folder and create another one, and got no permission errors.
The URL is (+-):
\\\\myip\\C$\\Devel\\workspace\\project\\HibernateSearch\\indexes
EDITED 2
I changed the URL to be local on that machine, and now it finds the directory and everything is fine.
What should be the correct URL than for network IP?