diff --git a/arduino-core/src/processing/app/helpers/FileUtils.java b/arduino-core/src/processing/app/helpers/FileUtils.java index 99fb95031..186141cf5 100644 --- a/arduino-core/src/processing/app/helpers/FileUtils.java +++ b/arduino-core/src/processing/app/helpers/FileUtils.java @@ -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(); }