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:
kohsuke committed 2007-09-03 15:51:15 +00:00
1 parent 617944580b
commit e53bbec6c1
1 file changed
+2 -5
+2 -5
View File
@@ -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 {