Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 7697 Details for
Bug 44106
[resources] delete traverses unix symbolic links to directories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Proposed patch
link-folder-delete.patch (text/plain), 1.04 KB, created by
Jeremiah Lott
on 2004-02-04 15:47:58 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jeremiah Lott
Created:
2004-02-04 15:47:58 EST
Size:
1.04 KB
patch
obsolete
>Index: src/org/eclipse/core/internal/localstore/DeleteVisitor.java >=================================================================== >retrieving revision 1.17 >diff -u -r1.17 DeleteVisitor.java >--- src/org/eclipse/core/internal/localstore/DeleteVisitor.java 21 Nov 2003 21:39:11 -0000 1.17 >+++ src/org/eclipse/core/internal/localstore/DeleteVisitor.java 4 Feb 2004 18:49:33 -0000 >@@ -48,6 +48,11 @@ > java.io.File localFile = deleteLocalFile ? new java.io.File(node.getLocalLocation()) : null; > // if it is a folder in the file system, delete its children first > if (target.getType() == IResource.FOLDER) { >+ /* if this file is a POSIX symbolic link, then deleting the local file before the recursion will keep >+ * its contents from being deleted on the filesystem. >+ */ >+ if (localFile != null) >+ localFile.delete(); > for (Enumeration children = node.getChildren(); children.hasMoreElements();) > delete((UnifiedTreeNode) children.nextElement(), deleteLocalFile, shouldKeepHistory); > node.removeChildrenFromTree();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44106
: 7697