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

Ryan report at bugs.python.org
Tue Apr 16 20:46:40 EDT 2019


New submission from Ryan <Ryan_D at 163.com>:

My script need scan a netdisk directory to get the content of it. I use os.listdir() method for an easy implement, then I got permission error when executing in Python 3.x, but the same code is working fine in Python 2.7,I attached a screenshot for explaining the problem.

----------
components: Windows
files: X1ONx.png
messages: 340373
nosy: Ryan_D at 163.com, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: os.listdir() got permission error in Python3.6 but it's fine in Python2.7
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file48269/X1ONx.png

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


More information about the New-bugs-announce mailing list