Collection entriesCollection = getDirEntries(parent, parentURL, myReposRootDir, properties, false); Iterator entries = entriesCollection.iterator(); while (entries.hasNext()) { SVNDirEntry entry = (SVNDirEntry) entries.next(); handler.handleDirEntry(entry);
if(handler != null){ SVNURL parentURL = getLocation().appendPath(path, false); Collection entriesCollection = getDirEntries(parent, parentURL, myReposRootDir, false); Iterator entries = entriesCollection.iterator(); while (entries.hasNext()) { SVNDirEntry entry = (SVNDirEntry) entries.next(); handler.handleDirEntry(entry); } } if(properties != null){ properties.putAll(collectProperties(parent, myReposRootDir));
    public long getDir(String path, long revision, Map properties, ISVNDirEntryHandler handler) throws SVNException {        try {            openRepository();            if (!SVNRepository.isValidRevision(revision)) {                revision = FSReader.getYoungestRevision(myReposRootDir);            }            path = path == null ? "" : path;            String repositoryPath = getRepositoryPath(path);            SVNURL parentURL = getLocation().appendPath(path, false);            FSRevisionNode parent = myRevNodesPool.getRevisionNode(revision, repositoryPath, myReposRootDir);            Collection entriesCollection = getDirEntries(parent, parentURL, myReposRootDir, properties, false);            Iterator entries = entriesCollection.iterator();            while (entries.hasNext()) {                SVNDirEntry entry = (SVNDirEntry) entries.next();                handler.handleDirEntry(entry);            }            return revision;        } finally {            closeRepository();        }    }