[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

Ryan report at bugs.python.org
Wed Apr 17 09:15:40 EDT 2019


Ryan <Ryan_D at 163.com> added the comment:

I ran "python3" because I rename the execute file for distincting with python2 exe.
PS D:\workspace> (get-command python3).source
C:\Python36_64\python3.exe

There is no problem for my dev environment, it's an obviously different output for the same API call between python2.7 and python3.6.
not only listdir(), but also os.walk() has the same problem.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36646>
_______________________________________


More information about the Python-bugs-list mailing list