code: public boolean isDirectory() {
  		if (sftp.getVersion() > 3) {
  			return type == SSH_FILEXFER_TYPE_DIRECTORY;
  		} else if (permissions != null
  				&& (permissions.longValue() & SftpFileAttributes.S_IFDIR) == SftpFileAttributes.S_IFDIR) {
  			return true;
  		} else {
  			return false;
  		}
  	}
docs: Determine whether these attributes refer to a directory
  
  @return boolean