-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
File append not working with SPIFFS #1012
Comments
can you please post some test code? I tested |
sure, example code: https://github.com/michprev/flyhero-esp32/tree/224f8e446d2d7854198ae4b79348077e04d56ace/Logging Also tried to use c++ ofstream class. In this case file was not created. |
What is the exact nature of the problem? Is it that fopen() for append returns null? If so, what is the value of errno immediately after the fopen()? |
I get
works as expected. It seems like file is not created (if not exists) with "a" option. |
Issue found :) expect it to be resolved when changes are merged |
@nkolban issue was that nonexistent file was not created when it's opened with append. I guess SPIFFS append worked in a different way ;) Fix will be in today or tomorrow :) |
Fixed in 14b12a2. |
I am experiencing a problem when trying to open a file from SPIFFS storage in append mode using C standard file api. Read/write mode works with no problems.
The text was updated successfully, but these errors were encountered: