code: public boolean isDirectory() throws SmbException {
          if( getUncPath0().length() == 1 ) {
              return true;
          }
          if (!exists()) return false;
          return ( attributes & ATTR_DIRECTORY ) == ATTR_DIRECTORY;
      }
docs: Tests to see if the file this <code>SmbFile</code> represents is a directory.
  
  @return <code>true</code> if this <code>SmbFile</code> is a directory