-->
Page 1 of 2

Download Files from ESP8266/ESP32 LittleFS

PostPosted: Wed Apr 19, 2023 1:05 pm
by ArjenV
Dear forum

Wrote an application with webbrowser in LittleFS. Beside the html/css/javascript files, It uses binary files to store/read/write settings. I can upload these binary files with the 'ESP8266 data upload littlefs' script within de arduino IDE. However, the program stores data in the littlefs filesystem as well. I'd like to be able to download the contents as well as a backup for instance. I searched several search engines and this forum for a solution but did not find any.
I'd be happy with a command line program to list and download the littlefs contents (via serial). A webbrowser solution would even be better. ftp, telnet, surprise me :-)
Could someone point me in the direction of such a solution?

Thanks

Re: Download Files from ESP8266/ESP32 LittleFS

PostPosted: Wed Apr 19, 2023 2:46 pm
by btidey
Look at the FSBrowser example under the ESP8266WebServer library..
This gives the ability to upload / download/ view and delete files on the filing system.

I always include this in any esp8266 project needing a server as I find it a convenient way to maintain the files on the filing system.

I incorporate the routines necessary in my Basesupport library to make it easier to include.
https://github.com/roberttidey/BaseSupport

Re: Download Files from ESP8266/ESP32 LittleFS

PostPosted: Wed Apr 19, 2023 2:52 pm
by rooppoorali
Is the Python littlefs-tools 1.1.2 of any help?

Re: Download Files from ESP8266/ESP32 LittleFS

PostPosted: Thu Apr 20, 2023 3:49 pm
by ArjenV
Thanks rooppoorali and btidey.
I'll look into your suggestions.