SVNFileType fileType = SVNFileType.getType(path);
if (fileType == SVNFileType.DIRECTORY) {
dir = wcAccess.open(SVNWCUtil.isVersionedDirectory(path.getParentFile()) ? path.getParentFile() : path, true, 0);
} else {
// files and symlink goes here.
dir = wcAccess.open(path.getParentFile(), true, 0);
}
if (fileType == SVNFileType.DIRECTORY && depth.compareTo(SVNDepth.FILES) >= 0) {
File wcRoot = SVNWCUtil.getWorkingCopyRoot(dir.getRoot(), true);
addDirectory(wcRoot, path, dir, force, includeIgnored, depth, depthIsSticky);
} else if (fileType == SVNFileType.FILE || fileType == SVNFileType.SYMLINK) {