Lines Matching refs:topdown
3117 .. function:: walk(top, topdown=True, onerror=None, followlinks=False)
3138 If optional argument *topdown* is ``True`` or not specified, the triple for a
3140 (directories are generated top-down). If *topdown* is ``False``, the triple
3142 (directories are generated bottom-up). No matter the value of *topdown*, the
3146 When *topdown* is ``True``, the caller can modify the *dirnames* list in-place
3151 :func:`walk` again. Modifying *dirnames* when *topdown* is ``False`` has
3199 for root, dirs, files in os.walk(top, topdown=False):
3205 .. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
3215 .. function:: fwalk(top='.', topdown=True, onerror=None, *, follow_symlinks=False, dir_fd=None)
3260 for root, dirs, files, rootfd in os.fwalk(top, topdown=False):
3266 .. audit-event:: os.fwalk top,topdown,onerror,follow_symlinks,dir_fd os.fwalk