Java File.isDirectory() returns False for a Directory in Linux

Posted by shelt536 on Stack Overflow See other posts from Stack Overflow or by shelt536
Published on 2010-03-15T21:25:58Z Indexed on 2010/03/15 21:29 UTC
Read the original article Hit count: 100

Filed under:
|
|

Please see code snippet:

File[] additionalFiles = new File(FILE_PATH).listFiles();
boolean isDirectory = file.isDirectory();

I have verified that the directory path is correct, and when I run the code on Windows, the value of isDirectory is true (as it should be). Any suggestions as to why this occurs on Linux (RedHat Enterprise Linux)?

© Stack Overflow or respective owner

Related posts about java

Related posts about linux