Listing directorycontent in python
andreas
wpt2097 at hotmail.com
Tue Jul 31 02:31:55 EDT 2001
Hello.
I have a simple question, I want to have a list of all files/dirs in a
certain directory.
An example would be that I want to know all filenames that end with
"*.JPG" in the directory "/var/www/".
I have not succeeded in doing this myself with "os.path"-module, so I
am now asking for tips, hints, examples or pointers to answers of
previous similar posts.
I am using Python v1.5 most of the time.
TIA
Andreas
More information about the Python-list
mailing list