I haven't gone though the C code yet. What I have known so far, cfengine
usually uses full path names so I don't think that the pattern would be used in
the root folder of the depth search. Concerning your problem, cfengine might
try to do exclude_dirs regex with "base/hello/data/cache". It mig
I can confirm that it excludes base/hello/data/cache. So is there a symbol
to use in a exclude_dirs pattern to mean "the root of the depth search" ?
Also, I really don't understand why you need the .* in front. If someone can
enlighten me... thanks
Jean-Noel
On Mon, Feb 1, 2010 at 4:25 PM, Jean-
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 pr
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