public Boolean isTraversable(File f) { return Boolean.valueOf(isFileSystemRoot(f) || isComputerNode(f) || f.isDirectory()); }
/** * Returns true if the file (directory) can be visited. Returns false if the directory cannot be * traversed. * * @param f the <code>File</code> * @return <code>true</code> if the file/directory can be traversed, otherwise <code>false</code> * @see JFileChooser#isTraversable * @see FileView#isTraversable * @since 1.4 */ public Boolean isTraversable(File f) { return Boolean.valueOf(f.isDirectory()); }