charlesbaynham / OSFS

Overly Simplified File System for Arduino EEPROM
GNU General Public License v3.0
33 stars 9 forks source link

BUG: Files can be duplicated if deleted files exist #5

Closed charlesbaynham closed 4 years ago

charlesbaynham commented 4 years ago

If a file small enough to fit into a deleted chunk of free space is written with overwrite==true, it will be inserted into that space but the previous version that exists later on in the filesystem will not be overwritten. See

https://github.com/charlesbaynham/OSFS/blob/5002c74fc9a09a3a3b932bef34c5daba36868860/src/OSFS.cpp#L130-L135

charlesbaynham commented 4 years ago

Also there's no break in the above