19 Mar
2005
19 Mar
'05
7:03 p.m.
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