Solved

directory selector

Posted on 2009-04-09
1
399 Views
Last Modified: 2012-05-06
I need to create a box which lists all directories (no files) on a local and remote computer which has check boxes next to each directory.
This box will be embedded in a web page which has an existing form which one submit button, which takes the information from both the python box and the html form.

Is this possible?  
0
Comment
Question by:bman87
1 Comment
 
LVL 16

Accepted Solution

by:
hankknight earned 500 total points
ID: 24114555
Yes you can accomplish your objective with Python and HTML.

With Python Use
      os.listdir()
to get a list of files and directories, then use
      if os.path.isdir()
to make sure you only output directories.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question