Java: Linux Directory Fails to Register as a Directory in...
which may result in a security exception. However, I am assuming that your code does not handle this exception and instead returns false. Alternatively, it could be a sym link issue, which I am not very familiar with.