get directory and file names

Alchemist alextabone at
Tue Jul 31 16:23:06 CEST 2007

I am working with Python 2.5 on Windows XP (SP2).

How can I traverse a folder, loop through a list of files and get
their file name and extension in an elegant, pythonic way?

Thank you.

More information about the Python-list mailing list