Re: get directory and file names
- From: Bruno Desthuilliers <bruno.42.desthuilliers@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jul 2007 16:29:59 +0200
Alchemist a écrit :
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?
http://docs.python.org/lib/module-os.path.html
http://docs.python.org/lib/os-file-dir.html
(=> os.walk)
.
- References:
- get directory and file names
- From: Alchemist
- get directory and file names
- Prev by Date: Re: get directory and file names
- Next by Date: Re: Plotting Images
- Previous by thread: Re: get directory and file names
- Next by thread: Re: get directory and file names
- Index(es):
Relevant Pages
|