PaulStoffregen / LittleFS

73 stars 20 forks source link

FILE_WRITE opens for append? #52

Closed CCurl closed 2 years ago

CCurl commented 2 years ago

If I a file with FILE_WRITE more than once, the contents are not truncated, they are appended. Is that the expected behavior?

PaulStoffregen commented 2 years ago

Yes, this is the documented behavior from the SD library.

Use FIlE_WRITE_BEGIN.