control to browse and select local directory?



I am trying to convert a Python App I wrote that generates html docs from a template. It comes in handy when doing things like photo galleries where dozens of pages are identical except the previous link, next link, and current image. I don't believe in dynamically generating pages where the query can be anticipated, and static pages will do.

I am using a PHP page/form as the GUI. In my Python App I have a widget that allows me to browse and select a directory instead of having to hard code the source and destination directories. I could use a file type input field, but that requires me to have a file to select in both the source and target folder. Then I have to strip out the path from the returned value. Does anyone have an idea that will allow me to file-browse to, and select the directory?
.