How to delete all files in a directory?
"flanderso11" <anders.roslund-uatLPfZoX+lvmJmQz4FtxlaTQe2KTcn/@public.gmane.org>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
Hi I have setup a FAT filesystem where I want to be able to delete a whole directory and everything in it (subfolder, files, etc). sspec_rmdir() only works on empty directory and sspec_delete() only works on files, not directories. How do I delete the directory and the whole contents? One option is to use nested for-loops since I would probably only use three levels of subdirectories but there must be a simpler and better way. BR, Anders