A little assistance with os.walk please.

KraftDiner bobrien18 at yahoo.com
Mon Aug 14 10:44:39 EDT 2006


The os.walk function walks the operating systems directory tree.

This seems to work, but I don't quite understand the tupple that is
returned...
Can someone explain please?

for root, dirs, files in os.walk('/directory/'):
	print root
#	print dirs
#	print files




More information about the Python-list mailing list