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