Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LittleFS data upload removes other files. (Read 1894 times)
Erik Bongers
Newbies
*
Offline


Posts: 4
Joined: Aug 1st, 2017
LittleFS data upload removes other files.
Aug 12th, 2022 at 11:05am
Print Post  
Hi, when uploading to an ESP32, I include a data folder (using auto-upload via LittleFS).
But I also create and update a file within the ESP32, also using LittleFS. This file gets deleted on every upload (not on reboot).
All this happens in the root folder on the ESP32.
Is there a way to upload without deleting existing files?
Thanks in advance,
Erik.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: LittleFS data upload removes other files.
Reply #1 - Aug 12th, 2022 at 1:41pm
Print Post  
If you follow the guide in yellow above we will see the littleFS command and how it works. It will be a question for the author of littleFS but there might already be a switch you can pass that preserves existing data. 

Seeing the verbose command will give us some pointers as to who you need to ask or what to look for.
  
Back to top
WWW  
IP Logged
 
Erik Bongers
Newbies
*
Offline


Posts: 4
Joined: Aug 1st, 2017
Re: LittleFS data upload removes other files.
Reply #2 - Aug 13th, 2022 at 11:19am
Print Post  
Tnx. So I understand that you didn't build the upload tool yourself.
I found the actual tool and it appears it creates a local 'disk-image' of all the files and then uploads that image (a single file) to the ESP.
That leaves me with the option of trying to create a separate and unaffected partition in the flash. Not even sure of that's possible. 
Or frequently download the user files from the ESP, via the webserver (which happens to be installed already for this particular application).
But it's just a small settings file, so I won't bother with either solution. At least I know my options now.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: LittleFS data upload removes other files.
Reply #3 - Aug 13th, 2022 at 1:51pm
Print Post  
Great, thanks for the update
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint