Yes, it is a bug which has since been fixed.  I'd recommend upgrading to a 
newer version of Cfengine (and 3.1.0 will be coming out soon, too!)

-Dan

On Oct 25, 2010, at 2:06 PM, Jean-Noël Rivasseau wrote:

> Hello,
> 
> I want to delete a directory and all its content, I am running cfengine 3.0.3 
> and the exact example of the manual does *not* work:
> 
>      bundle agent cleanup
>      {
>      files:
> 
>        # This will not delete the parent
> 
>        "/home/mark/tmp/testcopy"
> 
>          delete => tidyfiles,
>          file_select => changed_within_1_year,
>          depth_search => recurse("inf");
> 
>        # Now delete the parent.
> 
>        "/home/mark/tmp/testcopy"
>          delete => tidyfiles;
>      }
> 
> I just tested with /tmp/foo instead of "/home/mark/tmp/testcopy", but keeping 
> the same exact code.
> 
> The contents of /tmp/foo are deleted, but not the parent directory itself 
> (foo).
> 
> Is that a known bug in 3.0.3? Any workaround?
> 
> 
> Jean-Noel
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to