mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-19 13:54:23 +01:00
Merge pull request #3141 from cmaglie/fix-recursive-delete
Fix for FileUtils.recursiveDelete() when dealing with symbolic links
This commit is contained in:
commit
d008d9de81
@ -85,7 +85,7 @@ public class FileUtils {
|
||||
recursiveDelete(current);
|
||||
}
|
||||
}
|
||||
deleteIfExists(file);
|
||||
file.delete();
|
||||
}
|
||||
|
||||
public static File createTempFolder() throws IOException {
|
||||
@ -274,10 +274,6 @@ public class FileUtils {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!file.exists()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return file.delete();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user