Listing directorycontent in python

Andrei Kulakov sill at
Tue Jul 31 07:14:56 EDT 2001

On 30 Jul 2001 23:31:55 -0700, andreas <wpt2097 at> wrote:
> 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.
> Andreas


Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at:

More information about the Python-list mailing list