if (entry.getKind() == SVNNodeKind.DIR && recursive) {
if (entry.getKind() == SVNNodeKind.DIR && entry.getDate() != null && recursive) {
    private static void list(SVNRepository repository, String path, long rev,            boolean recursive, ISVNDirEntryHandler handler) throws SVNException {        Collection entries = new TreeSet();        entries = repository.getDir(path, rev, null, entries);        for (Iterator iterator = entries.iterator(); iterator.hasNext();) {            SVNDirEntry entry = (SVNDirEntry) iterator.next();            String childPath = "".equals(path) ? entry.getName() : PathUtil                    .append(path, entry.getName());            entry.setPath(childPath);            handler.handleDirEntry(entry);            if (entry.getKind() == SVNNodeKind.DIR && recursive) {                list(repository, childPath, rev, recursive, handler);            }        }    }