Merge pull request #3141 from cmaglie/fix-recursive-delete

Fix for FileUtils.recursiveDelete() when dealing with symbolic links
This commit is contained in:
Federico Fissore 2015-05-15 16:50:22 +02:00
commit d008d9de81
1 changed files with 1 additions and 5 deletions

View File

@ -85,7 +85,7 @@ public class FileUtils {
recursiveDelete(current); recursiveDelete(current);
} }
} }
deleteIfExists(file); file.delete();
} }
public static File createTempFolder() throws IOException { public static File createTempFolder() throws IOException {
@ -274,10 +274,6 @@ public class FileUtils {
return true; return true;
} }
if (!file.exists()) {
return false;
}
return file.delete(); return file.delete();
} }