Listing directorycontent in python
sill at optonline.net
Tue Jul 31 13:14:56 CEST 2001
On 30 Jul 2001 23:31:55 -0700, andreas <wpt2097 at hotmail.com> wrote:
> 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.
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: http://silmarill.org/cymbaline
More information about the Python-list