[docs] [issue26545] os.walk is limited by python's recursion limit
Sergey Chvalyuk
report at bugs.python.org
Fri Jun 10 07:56:13 EDT 2016
Sergey Chvalyuk added the comment:
There is another limitation with os.walk
it also cannot go very deep inside tree because of scandir can throw
OSError(36, 'File name too long')
I have wrote tests for both cases:
https://gist.github.com/grubberr/3367f1d605e292103b576a17a46ef3c3
tested on linux only
on MacOS it throw 'File name too long' for 1-st test too
set sys.settrecursionlimit to lower values
----------
nosy: +Sergey Chvalyuk
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26545>
_______________________________________
More information about the docs
mailing list