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.
You may use a "dtml-in", too. Like that:
<dtml-call "REQUEST.set(curr__,lfs)">
<dtml-in path_to_handle>
<dtml-call "REQUEST.set(curr__,curr__[_['sequence-item']])">
</dtml-in>
<dtml-var "curr__.fileids">
Dieter
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )