Re: Flexibility in exclude_dirs

2010-02-03 Thread Nakarin Phooripoom
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

Re: Flexibility in exclude_dirs

2010-02-01 Thread Jean-Noël Rivasseau
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-

Re: Flexibility in exclude_dirs

2010-02-01 Thread Nakarin Phooripoom
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

Flexibility in exclude_dirs

2010-02-01 Thread Jean-Noël Rivasseau
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