Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/ESP8266FS.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ private void createAndUpload(){
String dataPath = dataFolder.getAbsolutePath();
String toolPath = tool.getAbsolutePath();
String sketchName = editor.getSketch().getName();
String sketchFldr = editor.getSketch().getFolder();
String imagePath = getBuildFolderPath(editor.getSketch()) + "\\" + sketchName + ".spiffs.bin";
String resetMethod = BaseNoGui.getBoardPreferences().get("upload.resetmethod");
String uploadSpeed = BaseNoGui.getBoardPreferences().get("upload.speed");
Expand Down Expand Up @@ -304,7 +303,7 @@ private void createAndUpload(){

if(JOptionPane.showOptionDialog(editor, message, title, JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]) == JOptionPane.YES_OPTION){
File source = new File(imagePath);
File dest = new File(sketchFldr + "\\" + sketchName + ".spiffs.bin");
File dest = new File(editor.getSketch().getFolder(),"\\" + sketchName + ".spiffs.bin");
try {
Files.copy(source.toPath(), dest.toPath(), StandardCopyOption.REPLACE_EXISTING);
System.out.println("Copied SPIFFS image");
Expand Down