[Zope] Accessing file contents (LocalFS)
Mark Snellings
msnellings@stellarcomms.com
Wed, 16 Jan 2002 10:17:10 -0500
I am interesting to iterating over all files in a LocalFS and displaying the
file contents.
Given a filename, I can access the contents with:
<dtml-var "test['foo.txt'].data">
And I can iterate over all the files in the LocalFS with:
<dtml-in "test.fileIds()">
<dtml-var sequence-item>
</dtml-in>
OR
<dtml-in "test.fileValues()">
<dtml-var id>
</dtml-in>
But how do I iterate over all the files in the LocalFS, displaying the
contents of each file as I go?
Thanks
Mark Snellings