Closed craigfoo closed 8 years ago
@craigfoo Thanks for the report, we have updated SPIFFS library, the issue is fixed now in git.
Good, work. I've been having this problem for a while, but could not really identify the cause, as it was random for me.
I'll let you know if it solved too.
As usual @igrr thanks for the hard work.
Excellent @igrr! I will give it try soon and report back!
I ran the same code I used to find the bug and it now works swimmingly! @igrr, good work sir. Thanks!
Hardware
Hardware: Adafruit ESP8266 Feather Huzzah Core Version: Whatever core is current with PlatformIO
Description
SPIFFS is creating duplicate files.
Settings in IDE
Module: Adafruit ESP8266 Feather Huzzah Flash Size: ?4MB/1MB? CPU Frequency: ?80Mhz? Flash Mode: ?qio? Flash Frequency: ?40Mhz? Upload Using: SERIAL Reset Method: On-board button
Sketch/Description
I'm using SPIFFS to create 3 files for reading and writing data.
/data/config.json /logs/errors.json /logs/actions.json
On the first run, everything seems to be peachy:
Console Output 1
On the second run (after all the files are created), it finds all the files, finds that the action and error files are empty attempts to write to them but it's just renaming them to config.json instead. Now I have 3 config.json files.
Console Output 2
What am I missing? Why is it allowing me to have 3 identical file names?