提交 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 {
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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册