Indicates if this file represents a directory on the underlying file system. @return true if this file is a directory, false otherwise. @throws SecurityException if a SecurityManager is installed and it denies read access to this file
()
| 794 | * access to this file. |
| 795 | */ |
| 796 | public boolean isDirectory() { |
| 797 | if (path.length() == 0) { |
| 798 | return false; |
| 799 | } |
| 800 | // SecurityManager security = System.getSecurityManager(); |
| 801 | // if (security != null) { |
| 802 | // security.checkRead(path); |
| 803 | // } |
| 804 | return isDirectoryImpl(properPath(true)); |
| 805 | } |
| 806 | |
| 807 | private native boolean isDirectoryImpl(byte[] filePath); |
| 808 |
no test coverage detected