earlephilhower / mklittlefs

Utility for creating LittleFS images for upload on the ESP8266 and RP2040 Pico
MIT License
159 stars 54 forks source link

file name too long issue #19

Closed tsctrl closed 3 years ago

tsctrl commented 3 years ago

hi,

i getting error when building image file as below: unable to open '/data/assets/packages/material_design_icons_flutter/lib/fonts/materialdesignicons-webfont.ttf.gz. error adding file!

after renaming the file i am able to run the command successfully, however i am not able to rename the file as it was default apps library path. please help command i use: mklittlefs.exe -c data -b 4096 -p 256 -s 9699328 mkspiffs.bin

edit: mklittlefs version 3.0.0

thanks in advance

earlephilhower commented 3 years ago

Sorry, that's a limitation of the ESP8266 filesystem implementation. The max file name/directory name is 32 bytes, but your file's name is 34 bytes long (+1 for the terminating \0). Even if the file was added to the image, the ESP would crash when trying to access it.

tsctrl commented 3 years ago

noted and thanks!