New submission from Aviv Palivoda:

I am suggesting to add max_depth argument to os.walk. I think this is very 
useful for two cases. The trivial one is when someone wants to walk on a 
directory tree up to specific depth. The second one is when you follow symlinks 
and wish to avoid infinite loop.

The patch add the max_depth both to os.walk and os.fwalk.

----------
components: Library (Lib)
files: os-walk-max-depth.patch
keywords: patch
messages: 263556
nosy: loewis, palaviv
priority: normal
severity: normal
status: open
title: os.walk max_depth
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file42490/os-walk-max-depth.patch

_______________________________________
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

Reply via email to