I came across a situation where file.isFile () returns false, which indicates that the file is not "normal". However, I cannot find a definition of what "normal" means. Oracle docs link :
A file is normal if it is not a directory and, in addition, meets other system criteria.
File belongs _www:staffand has permissions -rw-r--r--. The catalog also belongs _www:staffand has permissions drwxrw-r--. The process that accesses the file belongs to bob:staff. System - MacOS 10.9. A process can read and download and display a file just fine; the only problem is that the call to isFile () returns false, which means that Java considers it to be not a regular file.
So, to get back to the larger question, under what conditions will this call return false, even if the file exists, is the path correct, and the file is accessible?
source
share