[Tutor] critique my script!
python at venix.com
Fri Aug 4 01:53:06 CEST 2006
On Thu, 2006-08-03 at 15:37 -0700, Christopher Spears wrote:
(in the os.walk processing)
> matched_files = glob.glob(pattern)
>From the os.walk documentation
Note: If you pass a relative pathname, don't change the current working
directory between resumptions of walk(). walk() never changes the
current directory, and assumes that its caller doesn't either.
Just making sure no one blindly copies this code without understanding
that an absolute path is essential.
More information about the Tutor