How can I recursively cleanup all empty files and directories in a parent directory. Lets?
Let’s say I have a dirthis directory structure:
Parent/
|____Child1/
|______ file11.txt (empty)
|______ Dir1/ (empty)
|____Child2/
|_______ file21.txt
|_______ file22.txt (empty)
|____ file1.txt
I should end up with this:
Parent/
|____Child2/
|_______ file21.txt
|____ file1.txt