I’ve noticed that checking if an instance of a File class is a Directory with the method isDirectory() this method return true also for file without an extension .
For example if i have a file name myfile without exetension isDirectory() method return true, is there another method that check if the file passed is really a directory ?
I’m trying on Windows …
Works properly on my Windows7, JDK 6. Try upgrading your JRE/JDK and double-check if you don’t have a directory with the same name. I used this snippet to check: