something like this?
def folder():
import os
return dict(files=TABLE(*[TR(TD(f)) for f in os.listdir('/
path/')]))
On Apr 22, 7:48 am, greenpoise <[email protected]> wrote:
> I want to display the contents (files) of a folder and be able to
> click and download the files. How is this accomplished within a
> controller? leads? any examples out there? I know there is os.path,
> os.listdir and glob. Do I have to import the modules in Web2Py?
>
> Thanks
>
> --
> Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en