Can I 'LOOK' through urllib?

Paul Rubin http
Thu Feb 12 00:35:07 CET 2009

Muddy Coder <cosmo_general at> writes:
> Now I want to LOOK to server through urllib. I read the urllib docs,
> but I did not find such a function. For example, if there are many
> files located in, but I don't
> know what the filenames are residing in the data_folder. I wish urllib
> would have a function to let me do it, as well as I do 'dir' in DOS,
> 'ls' on unix/linux. Somebody write me a demo? Thanks!

That is done on the server side, and only if the server operator wants
to let you look at the filenames (which is not always).  See for example:

More information about the Python-list mailing list