See if this works for you: 
http://web2py.com/books/default/chapter/29/14/other-recipes#Publishing-a-folder.

If not, I suggest reading the documentation (and possibly the source code 
<https://github.com/web2py/web2py/blob/b84b47dad252bacedbdd91a52394c628a950162d/gluon/tools.py#L6218>
 
for the above functionality), trying something, and coming back with more 
specific questions if you get stuck.

Anthony

On Tuesday, September 6, 2016 at 10:43:19 AM UTC-4, Aman Agrawal wrote:
>
> I wish to create a webpage that displays the sub- directories of a 
> directory and when clicked on any directory, it lists the files present in 
> that directory.
> Finally by clicking the file in the directory, I want the user to be able 
> to download that file.
>
> Any Help on the Controller and the view would be really helpful. 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to