On linux even empty directories take up some space so "du -kh" reports 4.0K for them and therefore never would be deleted by your logic as far as I can see...
This is simply (not even talking about the hard-coded directory) broken code.
In reply to Re: Clean Up Empty Directories
by morgon
in thread Clean Up Empty Directories
by GotToBTru
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |