We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent8427b5c commit545c8c2Copy full SHA for 545c8c2
src/ESP8266FS.java
@@ -145,14 +145,20 @@ private void createAndUpload(){
145
return;
146
}
147
148
-
149
-Filetool;
150
-if(!PreferencesData.get("runtime.os").contentEquals("windows"))tool =newFile(platform.getFolder()+"/tools","mkspiffs");
151
-elsetool =newFile(platform.getFolder()+"/tools","mkspiffs.exe");
152
-if(!tool.exists()){
153
-System.err.println();
154
-editor.statusError("SPIFFS Error: mkspiffs not found!");
155
-return;
+StringmkspiffsCmd;
+if(PreferencesData.get("runtime.os").contentEquals("windows"))
+mkspiffsCmd ="mkspiffs.exe";
+else
+mkspiffsCmd ="mkspiffs";
+
+Filetool =newFile(platform.getFolder() +"/tools",mkspiffsCmd);
+if (!tool.exists()) {
156
+tool =newFile(PreferencesData.get("runtime.tools.mkspiffs.path"),mkspiffsCmd);
157
158
+System.err.println();
159
+editor.statusError("SPIFFS Error: mkspiffs not found!");
160
+return;
161
+ }
162
163
164
intfileCount =0;