Maybe this is what you want.

body depth_search recurse(depth)
{
 depth => "$(depth)";
 exclude_dirs => { ".*data/cache" };
}

Cheers,
--Nakarin

On Feb 1, 2010, at 11:46 PM, Jean-Noël Rivasseau wrote:

> Hi
> 
> It seems to me exclude_dirs is not flexible enough, or I dont know how to use 
> it properly.
> 
> Say I have a base directory I want to copy recursively, base/. Inside base/ 
> there is a data subfolder, and inside data cache/.
> 
> I dont want to copy the cache directory base/data/cache; however I do want to 
> copy a base/other/cache directory for instance. How can I specify pathes in 
> the regexps to achieve this kind of things?
> 
> It seems to me it is not possible, but I would love to be proved wrong (or, 
> unfortunately, confirmed true, in which case I would probably have to use 
> rsync then).
> 
> 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