mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-20 07:22:32 +00:00
fix for #585 was incomplete. Modified to properly detect symlinks, anywhere in the tree.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4617 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
617944580b
commit
e53bbec6c1
1 file changed
+2
-5
@@ -115,11 +115,8 @@ public class Util {
|
||||
File[] files = file.listFiles();
|
||||
if(files==null)
|
||||
return; // the directory didn't exist in the first place
|
||||
for (File child : files) {
|
||||
if (child.isDirectory())
|
||||
deleteContentsRecursive(child);
|
||||
deleteFile(child);
|
||||
}
|
||||
for (File child : files)
|
||||
deleteRecursive(child);
|
||||
}
|
||||
|
||||
private static void deleteFile(File f) throws IOException {
|
||||
|
||||
Reference in new issue
Block a user