LittleFS data preservation

Hi there,
Not sure if I'm in the right place but here goes.

I've just switched from SPIFFS to LITTLEFS and I am uploading some HTML files to the data folder and I noticed that some old csv files that were on the file system have been formatted and are now gone.

My problem is I want to know if I can upload data without formatting the LITTLEFS partition.

Can this be done?

Many thanks
andy

It seems to me that the data is held differently in SPIFFS than in LittleFS so it would not come as a surprise if changing file systems caused previously saved SPIFFS files to be unavailable

Can LittleFS read previously saved SPIFFS files ? If not, then what is the point of keeping them ?

1 Like

On that topic Espressif say: "They share a compatible API but have incompatible on-flash implementations, so it is important to choose one or the other per project as attempting to mount a SPIFFS volume under LittleFS may result in a format operation and definitely will not preserve any files, and vice-versa."

GitHub - RalphBacon/203-SPIFFS-vs-LITTLEFS: A simple file system for your ESP32 & ESP8266

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.