size = entryNode.getTextRepresentation().getExpandedSize();
size = getFileLength(entryNode);
    private SVNDirEntry buildDirEntry(FSEntry repEntry, SVNURL parentURL, FSRevisionNode entryNode, File reposRootDir, boolean includeLogs) throws SVNException {        entryNode = entryNode == null ? FSReader.getRevNodeFromID(reposRootDir, repEntry.getId()) : entryNode;        // dir size is equated to 0        long size = 0;        if (entryNode.getType() == SVNNodeKind.FILE) {            size = entryNode.getTextRepresentation().getExpandedSize();        }        Map props = null;        props = FSReader.getProperties(entryNode, reposRootDir);        boolean hasProps = (props == null || props.size() == 0) ? false : true;        Map revProps = null;        revProps = FSRepositoryUtil.getRevisionProperties(reposRootDir, repEntry.getId().getRevision());        String lastAuthor = null;        String log = null;        Date lastCommitDate = null;        if (revProps != null && revProps.size() > 0) {            lastAuthor = (String) revProps.get(SVNRevisionProperty.AUTHOR);            log = (String) revProps.get(SVNRevisionProperty.LOG);            String timeString = (String)revProps.get(SVNRevisionProperty.DATE);            lastCommitDate = timeString != null ? SVNTimeUtil.parseDateString(timeString) : null;        }        SVNURL entryURL = parentURL.appendPath(repEntry.getName(), false);        SVNDirEntry dirEntry = new SVNDirEntry(entryURL, repEntry.getName(), repEntry.getType(), size, hasProps, repEntry.getId().getRevision(), lastCommitDate, lastAuthor, includeLogs ? log : null);        dirEntry.setRelativePath(repEntry.getName());        return dirEntry;    }