On Wed, 7 Jan 2009, Erik Anderson wrote:

> On Wed, Jan 7, 2009 at 5:26 PM, Raymond Norton <admin at lctn.org> wrote:
>
>> I need to remove old directories and files from
>> /var/spool/Mailscanner/quarantine
>>
>> The following command gets rid of the files, but not the directories.
>> What flag would I need to add to accomplish this?
>>
>> find /var/spool/MailScanner/quarantine -mtime +10 -type f -exec rm -rf {} \;
>
> Remove the "-type f"

Will the time stamp on a directory always be at least as new as the newest 
file in the tree within the directory?  Apparently not -- I just checked 
it.  I think you might mean that he should remove the "-type f" and also 
change the "-rf" to "-f".  Look at this on your machine:

ls -ld /home
ls -ld /home/*

See what I mean?

Mike