if (file.isDirectory()) { SVNEntries entries = myWCAccess.getAnchor().getEntries(); SVNEntry entry = entries.getEntry(myTarget, false); entries.close();
SVNEntries entries = myWCAccess.getAnchor().getEntries(); SVNEntry entry = entries.getEntry(myTarget, false); SVNNodeKind kind = entry == null ? null : entry.getKind(); entries.close(); if (file.isDirectory() && (kind == null || kind == SVNNodeKind.DIR)) {
    public SVNCommitInfo closeEdit() throws SVNException {        if (myIsRootOpened) {            return new SVNCommitInfo(myTargetRevision, null, null);        }        if (myTarget != null) {            File file = myWCAccess.getAnchor().getFile(myTarget);            if (file.isDirectory()) {                SVNEntries entries = myWCAccess.getAnchor().getEntries();                SVNEntry entry = entries.getEntry(myTarget, false);                entries.close();                if (entry != null) {                    reportStatus(myWCAccess.getTarget(), null, false, myIsRecursive);                } else {                    myIsIncludeIgnored = true;                    reportStatus(myWCAccess.getAnchor(), myTarget, false, myIsRecursive);                }            } else {                myIsIncludeIgnored = true;                reportStatus(myWCAccess.getAnchor(), myTarget, false, myIsRecursive);            }        } else {            reportStatus(myWCAccess.getAnchor(), null, false, myIsRecursive);        }        return null;    }