We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59b95d9 commit cc99a67Copy full SHA for cc99a67
arduino-core/src/processing/app/Sketch.java
@@ -356,7 +356,7 @@ public void saveAs(File newFolder) throws IOException {
356
if (getDataFolder().exists()) {
357
File newDataFolder = new File(newFolder, "data");
358
// Check if data folder exits, if not try to create the data folder
359
- if (!(newDataFolder.exists() || newDataFolder.mkdirs())) {
+ if (!newDataFolder.exists() && !newDataFolder.mkdirs()) {
360
String msg = I18n.format(tr("Could not create directory \"{0}\""), newFolder.getAbsolutePath());
361
throw new IOException(msg);
362
}
0 commit comments