if (entry == null || entry.isDeleted()) {
dir = wcAccess.open(path, true, copyFromURL != null ? SVNWCAccess.INFINITE_DEPTH : 0);
}
command.put(SVNProperty.INCOMPLETE, null);
command.put(SVNProperty.SCHEDULE, replace ? SVNProperty.SCHEDULE_REPLACE : SVNProperty.SCHEDULE_ADD);
dir.modifyEntry(dir.getThisDirName(), command, true, true);
if (copyFromURL != null) {
SVNURL newURL = parentEntry.getSVNURL().appendPath(name, false);
updateCleanup(path, wcAccess, newURL.toString(), parentEntry.getRepositoryRoot(), -1, false, null, SVNDepth.INFINITY, false);
markTree(dir, null, true, false, COPIED | KEEP_LOCAL);
SVNPropertiesManager.deleteWCProperties(dir, null, true);