Page 1 of 1

EFFS file deletion

Posted: Sun Jul 12, 2009 4:03 pm
by nirias999
I have an app that over time records thousands of files on an SD card. Is there any trick to rapidly delete files? Deleting one file at a time with f_delete() is painfully slow at only 2 per second.

Re: EFFS file deletion

Posted: Sun Jul 12, 2009 4:33 pm
by Ridgeglider
I'd be intertested in the same thing too. One (small) way to improve many of the EFFS calls is to comment out the printf calls that dump status info to stdio. These are helpful at first, but usually inappropriate soon. For deletes of large numbers of files , I've often resorted to using a laptop and some batch files. A directory delete would be useful.