Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

os.walk() has been implemented via os.scandir(), but by default it ignores 
OSErrors raised by os.scandir(), DirEntry.is_dir() and DirEntry.is_symlink(). 
You can get errors raised by os.scandir() if specify the onerror argument, but 
errors in DirEntry.is_dir() and DirEntry.is_symlink() are always ignored, so 
too deep directories or links to directories can be treated as files.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46084>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to