Re: CGI / Delete / Empty Directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Kevin T Cella" <kevin.t.cella@xxxxxxxx> 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
find/xargs.

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.

http://httpd.apache.org/docs/current/mod/mod_ext_filter.html

So long,

i

-- 
Igor GaliÄ

Tel: +43 (0) 664 886 22 883
Mail: i.galic@xxxxxxxxxxxxxx
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux