bob gailer wrote:
> dirs = [dir for dir in dirs if not dir.startswith(u'.')]

Except to filter the directory list for os.walk() you have to modify the 
list in place. Use this:
dirs[:] = [dir for dir in dirs if not dir.startswith(u'.')]

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to