Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 44106
Collapse All | Expand All

(-)src/org/eclipse/core/internal/localstore/DeleteVisitor.java (+5 lines)
Lines 48-53 Link Here
48
		java.io.File localFile = deleteLocalFile ? new java.io.File(node.getLocalLocation()) : null;		
48
		java.io.File localFile = deleteLocalFile ? new java.io.File(node.getLocalLocation()) : null;		
49
		// if it is a folder in the file system, delete its children first
49
		// if it is a folder in the file system, delete its children first
50
		if (target.getType() == IResource.FOLDER) {
50
		if (target.getType() == IResource.FOLDER) {
51
			/* if this file is a POSIX symbolic link, then deleting the local file before the recursion will keep
52
			 * its contents from being deleted on the filesystem.
53
			 */
54
			if (localFile != null)
55
				localFile.delete();
51
			for (Enumeration children = node.getChildren(); children.hasMoreElements();)
56
			for (Enumeration children = node.getChildren(); children.hasMoreElements();)
52
				delete((UnifiedTreeNode) children.nextElement(), deleteLocalFile, shouldKeepHistory);			
57
				delete((UnifiedTreeNode) children.nextElement(), deleteLocalFile, shouldKeepHistory);			
53
			node.removeChildrenFromTree();
58
			node.removeChildrenFromTree();

Return to bug 44106