[Zope] Recursively read and write folders during install
Dieter Maurer
dieter at handshake.de
Sat Mar 19 14:03:49 EST 2005
David Pratt wrote at 2005-3-18 22:43 -0400:
>I am creating a product on the filesystem. Outside of the skins
>that contain generic scripts and templates, I am organizing a series of
>folders and their contents in the same hierarchy that I to want it
>appear in my CMF site.
You use "os.listdir" and "os.path.isdir" on the filesystem side
and "manage_addFolder" for directories and appropriate
other constructors for files on the ZODB side.
Or you use a "DirectoryView" (in case, your file hiearchy
does not contain content but templates and scripts).
--
Dieter
More information about the Zope
mailing list