I have been asked with this question, since I'm not a Windows user I could not answer it.
Would you please explain me why the following piece of code does not return correct results when is executed on Windows, while it returns precise results when is run on Linux.
But eventually on windows it raise an exception since OS does not let the program to create the folder.
we use JDK 6
We remove all permissions from a folder c:\temp
and we check the permissions in the program and all methods return true!!!