I have a code that searches through multiple subfolders and deletes all files with a .EIA extension. I want to know if there is any way I can search through the same subfolders and remove the ones that no longer have any files in them.
MATLAB: Removing an empty folder and subfolder
dirrmdirsystem
Related Question
- How to use DIR to extract file data (name, date, location/address/transit) from multiple folders and subfolders
- Running functions from initial working function when in another subfolder
- How to move/copy files from folder and subfolders to a new folder
- Code to edit a file name
- Omitting pointers when listing folder contents
Best Answer