cancel
Showing results for 
Search instead for 
Did you mean: 

Delete non-empty directory chan's FatFs

Niks
Associate II
Posted on February 23, 2017 at 10:47

Hello,

I wanted to delete the directories created using f_mkdir(). I have created some files inside directories. I could delete the individual files inside directories but unable to delete the entire directory.

My application includes number of directories and each directory consist of 100 files.

Would appreciate your response...!!! 

Thanks in advance,

Nikhil 

2 REPLIES 2
ilias
Associate II
Posted on September 10, 2017 at 21:00

Hello,

I have exactly the same request. 

Did you finally managed to get a solution? I would appreciate if you could share your solution if any.

Thanks

Posted on September 10, 2017 at 23:39

You'd need to enumerate through the content deleting the files as you go and descending into the subdirectories. If recursion isn't appealing you could create a processing list where you come back to the directories after the files have been removed.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..