Evgeny Kapun added the comment:

Mostly for consistency with other functions. Also, this provides an easy way to 
walk a directory tree recursively: just call listdir on every member, and if it 
doesn't raise OSError, that member must be a directory. With 
follow_symlinks=False, this method wouldn't follow symlinks, unlike os.walk and 
os.fwalk, which always follow symlinks at least to differentiate between 
symlinks to directories and other symlinks.

----------

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

Reply via email to