>At 19:54 22.01.2001 +0100, Dieter Maurer wrote:
>Ulrich Wisser writes:
>  > How can a get a directory listining with LocalFS
>  > for path "/sub1/sub2/sub3/"? I know I need something
>  > like "lfs['sub1']['sub2']['sub3'].fileids". But
>  > what if there are more (or less) elements in path_to_handle?
>The easiest answer to these types of questions are
>recursive functions.

this is the code I came up with:

   <dtml-call "REQUEST.set('mylfs',lfs)">
   <dtml-in path_to_handle>
     <dtml-call "REQUEST.set('mylfs',mylfs[_['sequence-item']])">

Now I should have a reference to the object in mylfs.

How can I detect if mylfs is a file or a directory?


Searchengine Know How  - Webpromotion - Optimization - Internal Search
World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg
http://www.publisher.de   Tel: +46-8-53460905    Fax: +46-8-534 609 06

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to