Message268116
| Author |
Sergey Chvalyuk |
| Recipients |
Elena.Oat, Sergey Chvalyuk, Thomas.Waldmann, docs@python, rhettinger |
| Date |
2016年06月10日.11:56:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1465559772.94.0.46339066849.issue26545@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|