On Fri, May 04, 2007 at 02:22:42PM +0100, Govind Chandra wrote:
I frequently need to remove empty directories (and files). Poorly written scripts (my own) make them at times. For me this does the job nicely.
find . -empty | xargs rmdir
Yes, fine, but doesn't work for empty maildir folders.
The requirement for deleting a maildir is:-
There's a dirctory with 'cur', 'new' and 'tmp' sub-directories. All of 'cur', 'new' and 'tmp' are empty.