By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,621 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,621 IT Pros & Developers. It's quick & easy.

Viewing Directories as tree

P: n/a

I am looking for some python code that I can plug-into my web
application to display file system heirarchies
using a tree structure. I have seem some libraries that do this but
only as a standalone application.

Is there anything that can be used in a browser?

Thanks,

-Jalil

Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello Jalil,
I am looking for some python code that I can plug-into my web
application to display file system heirarchies
using a tree structure. I have seem some libraries that do this but
only as a standalone application.

Is there anything that can be used in a browser?

If your browser supports XML (such as IE, Mozilla ...) you can output
the directory tree to an XML file and show it.
It can be made prettier with XSL but I didn't work with XSL so I can't
tell you how.

HTH.
Miki
Jul 18 '05 #2

P: n/a
Jalil Feghhi wrote:

I am looking for some python code that I can plug-into my web
application to display file system heirarchies
using a tree structure. I have seem some libraries that do this but
only as a standalone application.

Is there anything that can be used in a browser?


The following recipe displays a directory tree in ASCII. I suppose it
can be easily modified for HTML.

http://aspn.activestate.com/ASPN/Coo.../Recipe/217212

Mit freundlichen Gruessen,

Peter Maas

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail pe********@mplusr.de
-------------------------------------------------------------------
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.