Skip to content
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

Why LittleFS has such a low FILENAME_LENGTH (32 chars)? #69

Open
MrJake222 opened this issue Sep 15, 2024 · 2 comments
Open

Why LittleFS has such a low FILENAME_LENGTH (32 chars)? #69

MrJake222 opened this issue Sep 15, 2024 · 2 comments

Comments

@MrJake222
Copy link
Contributor

MrJake222 commented Sep 15, 2024

LittleFS has real directories instead of SPIFFS "paths with slashes", see (littlefs-project/littlefs#353 (comment))

There is no limit on the path length other then the RAM and storage you have on your device. lfs_file_open makes sure to write the file name to disk and doesn't keep it around.

edit: talking about this value:

#define FILENAME_LENGTH 32

@xreef
Copy link
Owner

xreef commented Sep 16, 2024

Hi,
It's not for all,
https://arduino-esp8266.readthedocs.io/en/latest/filesystem.html
but I can change for the others.
Bye Renzo

@MrJake222
Copy link
Contributor Author

I only see limitations for filenames not paths, and this FTP server limits full path length to 31 chars...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants