<<< Date Index >>>     <<< Thread Index >>>

Re: Reliable/safe way of removing empty maildirs?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Cameron Simpson <cs@xxxxxxxxxx> [12-07-07 01:38]:
> Yeah, but without even invoking find:
> 
>   rmdir dir/new dir/tmp dir/cur dir \
>   || mkdir -p dir/new dir/tmp dir/cur
> 
> Robust, safe, trivial.
> 
> People always seem to forget that rmdir is perfectly safe, in that it
> won't remove empty directories.
^^^^^^^^^^^
*only* removes empty directories   :^)
^^^^^^^^^^^^^^^^^^^^^^^^^^^


- -- 
Patrick Shanahan         Plainfield, Indiana, USA        HOG # US1244711
http://wahoo.no-ip.org     Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535                    @ http://counter.li.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFHWUbaClSjbQz1U5oRAhPrAKCKQrp33JBhC8FfaAXL8Geg5tJn3wCgoDkd
j0gOrWyGMG/8Qy6kb0OV3pA=
=0tkT
-----END PGP SIGNATURE-----