Ok, so that would make sense about that particular documentation quirk. I was interpreting "parent directory" to mean the contents of the directory, not the actual directory (i.e. directory inode).
I'm still unclear, however, on why the limited depth search is needed. I would think that the default would be no recursion, to only look at the immediate contents of the specified directory, which intuitively to me would mean a default depth_search depth value of zero, maybe one depending on the interpretation of what is meant by "depth". Thanks, Justin -----Original Message----- From: nwat...@symcor.com [mailto:nwat...@symcor.com] Sent: Thursday, March 18, 2010 12:25 PM To: Justin Lloyd Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfengine.org; Nakarin Phooripoom Subject: RE: Retrieving certain files from a directory help-cfengine-boun...@cfengine.org wrote on 2010-03-18 14:09:04: > I'm actually confused about depth_search. Here's what the documentation > says: > > "When searching recursively from a directory, the parent directory is > not part of the search. It is only the anchor point. To alter the > parent, a separate non-recursive promise should be made." As I understand it if I were to recursively search /var/cfengine/inputs promising to set everything to mode 640, /var/cfengine/inputs would NOT be included in that promise. Thus the search targets everything under the specified directory but not the directory itself. Sincerely, -- Neil Watson 416-673-3465 This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine