André Rossi Korol added the comment: I proposed a new function called lwalk(level walk) that recurses only to a certain level of depth: http://bugs.python.org/issue30942 It is implemented in os.py and calls os.walk, but making sure it recurses only to a selected level of depth. If it is accepted I could send a Pull Request with the lwalk function implemented in os.py.
---------- hgrepos: +371 nosy: +andrekorol Added file: http://bugs.python.org/file47020/os.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26781> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com