提交 e53bbec6 编写于 作者: K kohsuke

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
上级 61794458
...@@ -115,11 +115,8 @@ public class Util { ...@@ -115,11 +115,8 @@ public class Util {
File[] files = file.listFiles(); File[] files = file.listFiles();
if(files==null) if(files==null)
return; // the directory didn't exist in the first place return; // the directory didn't exist in the first place
for (File child : files) { for (File child : files)
if (child.isDirectory()) deleteRecursive(child);
deleteContentsRecursive(child);
deleteFile(child);
}
} }
private static void deleteFile(File f) throws IOException { private static void deleteFile(File f) throws IOException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册