DebugLog .log("checking for mods (dir props will be checked later)");
    public void canScheduleForDeletion(String name) throws SVNException {        // TODO use status call.        // check if this dir doesn't have obstructed, unversioned or modified        // entries.        SVNEntries entries = getEntries();        File[] files = getRoot().listFiles();        if (files == null) {            return;        }        DebugLog.log("can schedule for deletion: " + name + " in " + getRoot());        if ("".equals(name) && hasPropModifications(name)) {            SVNErrorManager.error("svn: '"                    + getPath().replace('/', File.separatorChar)                    + "' has local modifications");        }        for (int i = 0; i < files.length; i++) {            File childFile = files[i];            if (".svn".equals(childFile.getName())) {                continue;            }            if (!"".equals(name) && !childFile.getName().equals(name)) {                continue;            }            DebugLog.log("checking file: " + childFile);            SVNEntry entry = entries.getEntry(childFile.getName(), true);            DebugLog.log("entry: " + entry);            String path = PathUtil.append(getPath(), childFile.getName());            path = path.replace('/', File.separatorChar);            if (entry == null || entry.isHidden()) {                // no entry or entry is 'deleted'                SVNErrorManager.error("svn: '" + path                        + "' is not under version control");            } else {                SVNNodeKind kind = entry.getKind();                if ((childFile.isFile() && kind == SVNNodeKind.DIR)                        || (childFile.isDirectory()                                && !SVNFileUtil.isSymlink(childFile) && kind == SVNNodeKind.FILE)                        || (SVNFileUtil.isSymlink(childFile) && kind != SVNNodeKind.FILE)) {                    SVNErrorManager                            .error("svn: '"                                    + path                                    + "' is in the way of the resource actually under version control");                } else if (kind == SVNNodeKind.FILE) {                    // chek for mods.                    DebugLog                            .log("checking for mods (dir props will be checked later)");                    if (hasTextModifications(entry.getName(), false)                            || hasPropModifications(entry.getName())) {                        SVNErrorManager.error("svn: '" + path                                + "' has local modifications");                    }                }                if (kind == SVNNodeKind.DIR) {                    SVNDirectory childDir = getChildDirectory(childFile                            .getName());                    if (childDir != null) {                        childDir.canScheduleForDeletion("");                    }                }            }        }    }