[Zope] LocalFS and PathHandler

Ulrich Wisser u.wisser@publisher.de
Tue, 23 Jan 2001 14:13:09 +0100


Hello,

>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']])">
   </dtml-in>

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

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

Thanks

Ulrich
-- 
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