httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <>
Subject Re: [users@httpd] CGI / Delete / Empty Directories
Date Wed, 05 Jan 2011 19:02:01 GMT

----- "Kevin T Cella" <> wrote:

> The delete happens now as a DELETE HTTP request via DAV. Since no
> cleanup is done of empty directories, the underlying file system has a
> trail of them.

find /path/to/dav/root -type d -empty -print0 | xargs -0 rm -rf {} +

n.b.: -empty and -print0 will only work with GNU and FreeBSD

You could either run that from cron, or maybe put it mod_ext_filter
to only run on a part of the path which is actually affected.

So long,


Igor Galić

Tel: +43 (0) 664 886 22 883

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message