-
Notifications
You must be signed in to change notification settings - Fork 19
This plugin vs. mklittlefs compatibiliy. LittleFS root files slash #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The SPIFFS one is easy. There is no such thing as a directory on SPIFFS. That first "/" (and all others) is actually part of the file name (i.e. a file can be called "/this//is/a///file"). "/file.txt" is a different file than "file.txt" in this case. LittleFS has directories so "file" and "/file" are the same file. For most things, I imagine it will just work with the brain-damaged SPIFFS user code. As to the mklittlefs, you need to specify the exact same parameters on the |
Ok I got that :) BTW, to be able to build on Arduino IDE, I needed to checkout (insert manually) Is this supposed to be that way? And also BTW, i did my very quick-n-dirty first replacement SPIFFS with LittleFS test in my sketch this (ridiculous) way, which worked: Do you have anything similar for LittleFS but for ESP32? Thank you for your great work, appreciated! |
I think your install got borked. The 2.7.1 package ZIP that the board manager uses ( https://github.com/esp8266/Arduino/releases/download/2.7.1/esp8266-2.7.1.zip ) does include that subdir with source, I just checked it. If you're using I unfortunately don't have an ESP32 version. They've got the For most things, your Good luck! |
Hi @earlephilhower Now, hoping one day to see a ESP32 implementation with that similar great compatibility to ESP32 SPIFFS Meanwhile I made an improvised "arduino-esp32littlefs-plugin" see attached, but is pretty useless :) before we have a lib. |
espressif/arduino-esp32#3765 (comment) I made it for ESP32 |
Hi,
By using your other tool mklittlefs, I tried to unpack an image made by this plugin with Arduino IDE (Win10 64). The /data folder of the sketch has an inside folder.
mklittlefs.exe -l -s 2072576 MyProject.mklittlefs.bin
lfs error:966: Corrupted dir pair at 130 131
If I use mklittlefs to pack and unpack, it is OK.
Are both compatible and what parameters I need to provide (size, block) to be on "same page" between them?
My other question is about leading / of root files of LittleFS.
I replaced relatively easy SPIFFS with LittleFS in this project:
https://github.com/me-no-dev/ESPAsyncWebServer/blob/master/src/SPIFFSEditor.cpp
It works ...
However with LittleFS it somehow "strips" the leading slashes of root files and I need to modify other things, example "/.exclude.files" -> ".exclude.files"
Is this anything to do with notes here:
https://arduino-esp8266.readthedocs.io/en/latest/filesystem.html#littlefs-file-system-limitations
Or it is a difference that cannot / should not be retrofitted to look exactly like with SPIFFS?
The text was updated successfully, but these errors were encountered: