[Tutor] listing files in an html directory

John Washakie washakie at gmail.com
Sun Apr 29 19:50:12 CEST 2007

Hello all,

I'm trying to write a program which will take a path, look in it for
all files matching a certain pattern, then create javascript player to
play them. A key part of the code at this point is:

searchPath = imageRoot + '*' + imgExt
avail = glob.glob(searchPath)  #will glob work over http?

where searchPath is constructed from imageRoot and imgExt which are
user input variables. I don't think glob will work over http, is there
a urllib version perhaps? Any suggestions?


More information about the Tutor mailing list