<div class="gmail_quote">On Thu, Jun 4, 2009 at 8:29 AM, Norman Khine <span dir="ltr">&lt;<a href="mailto:norman@khine.net">norman@khine.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br>
I have the following code, which searches through a directory structure such as:<br>
<br>
$ tree -L 2 companies<br>
companies<br>
|-- aberdeen-airport-ltd<br>
|   |-- aberdeen-airport-dyce-grampian<br>
|   `-- aberdeen-airport-dyce-grampian.metadata<br>
|-- aberdeen-airport-ltd.metadata<br>
|-- aberdeen-motor-company-ltd<br>
|   |-- mugiemoss-road-grampian<br>
|   `-- mugiemoss-road-grampian.metadata<br>
<br>
<br>
the code can be seen at:<br>
<br>
<a href="http://paste.lisp.org/display/81348" target="_blank">http://paste.lisp.org/display/81348</a><br>
<br>
I basically have a form, where the user makes a search for &#39;Company&#39;<br>
name, than the code searches for all the items that do not contain<br>
&#39;hotel&#39; in the metadata<br>
<br>
This works for the first level, i.e. when searching in the companies directory.<br>
<br>
Now I want to extend this to search for the &#39;/companies/company/ but<br>
to only search the addresses that are in the found = [] list from the<br>
previous search.</blockquote><div><br></div><div>I haven&#39;t looked at your code, but I presume your &quot;search&quot; is a function? I certainly hope so anyway! Also I presume you return the found list? If so, it should be trivial. If not, you should probably adjust your code to do such things.</div>

<div><br></div><div>HTH,</div><div>Wayne </div></div>