pellepl / spiffs

Wear-leveled SPI flash file system for embedded devices
MIT License
1.52k stars 402 forks source link

Erase large file non-blocking or at least yielding #300

Open florianhumblot opened 8 months ago

florianhumblot commented 8 months ago

I'm running into an issue where I'm erasing a large file (think 1~4MB) before downloading a new version of that file. SPIFFS seems to block for the entire erase operation, which can take a while. Is there a way to delete a file asynchronously or something to that effect? I can't really afford to wait 30s for an erase to complete.