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

Reply via email to