lorol / LITTLEFS

LittleFS library for arduino-esp32
GNU General Public License v2.0
166 stars 68 forks source link

Arduino framework 3.5.0 vfs_api change #52

Open vojmar opened 2 years ago

vojmar commented 2 years ago

In the newly released Arduino framework the vfs_api.h open functions header changes such that it takes a mandatory additional parameter. FileImplPtr open(const char* path, const char* mode, const bool create) override; This caused a problem in LITTLEFS.cpp line 44 where third parameter is not provided.

Suggested fix

By providing third parameter as false the file should not be created when checking with exist function. Please verify and implement, also make sure its not breaking the older versions.

juandelacruz-calvo commented 1 year ago

I wish they would have made the parameter optional