This should destroy the whole contents of /tmp (assuming it matches hidden files, if not try adding **/.*/**
as another include pattern)
Andrew Thompson :: A little bigger on the inside
Software Developer :: Quidnunc
I am the cat who walks through walls, all places and all times are alike to me.
> -----Original Message-----
> From: Stefan Bodewig [mailto:email@example.com]
> Sent: Tuesday, November 14, 2000 8:59 AM
> To: firstname.lastname@example.org
> Subject: Re: Stupid <delete> question
> KC Baltz <KBaltz@responsenetworks.com> wrote:
> > I just want to delete all the files and subdirectories in a given
> > directory. So if I have a directory /tmp, I want to delete any
> > files in /tmp (got that working) and any subdirectories (this isn't
> > working).
> but not /tmp itself.
> Sorry, but I think this is not possible. Closest you can get is
> <delete dir="/tmp" />
> <mkdir dir="/tmp" />
> but this behavior is the same you'd see with deltree as well, isn't
> ISTR that handling of empty directories was on Glenn's TODO list.