Changing a value for each folder while traversing a file system

Peter Otten __peter__ at web.de
Thu Jul 27 16:32:39 EDT 2006


PipedreamerGrey wrote:

> That seems logical, but the syntax doesn't work.  I keep getting the
> error:
> 'module object' has no attribute 'dirname'

os.dirname() was a typo, try os.path.dirname(). 

Peter



More information about the Python-list mailing list