SVNNodeKind kind = FSReader.checkNodeKind(path, root.getRootRevisionNode(), reposRootDir);
FSRevisionNode node = null;  SVNNodeKind kind = null; try{ node = pool.openPath(root, path, false, null, reposRootDir, false).getRevNode(); }catch(SVNException svne){ if(svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_FOUND){ kind = SVNNodeKind.NONE; } throw svne; } kind = node.getType();
    public static FSNodeHistory getNodeHistory(File reposRootDir, FSRoot root, String path) throws SVNException{        if(root.isTxnRoot()){            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_REVISION_ROOT);            SVNErrorManager.error(err);        }                /*And we require that the path exist in the root*/    	SVNNodeKind kind = FSReader.checkNodeKind(path, root.getRootRevisionNode(), reposRootDir);    	    	if(kind == SVNNodeKind.NONE){    		SVNErrorManager.error(FSErrors.errorNotFound(root, path));    	}    	    	return new FSNodeHistory(new SVNLocationEntry(root.getRevision(), SVNPathUtil.canonicalizeAbsPath(path)),     			false, new SVNLocationEntry(FSConstants.SVN_INVALID_REVNUM, null));    }