file handling
Gordon McMillan
gmcm at hypernet.com
Thu Aug 10 08:59:11 EDT 2000
tjernstrom at my-deja.com wrote:
>I have written a small script that process html-files. All I need to do
>is find a way to send all html files in a directory to this file while
>ignoring the rest of the files in this directory (and do the same for
>all the subdirectories).
The easy way to get all files of a type in one directory is the glob
module. The usual way to recurse directories is use os.path.walk (where you
write a callback, and hand it to os.path.walk).
- Gordon
More information about the Python-list
mailing list