New submission from Krzysztof Warzecha:
Hello,
I'm running python 3.5.1 under windows and I've noticed glob.glob is returning
incorrect results when I'm using full path name to directory to which I don't
have access permissions.
Please consider this:
>> glob.glob('c:\\PerfLog*')
['c:\\PerfLogs']
>> glob.glob('c:\\PerfLogs')
[]
>> glob.glob('c:\\PerfLogs*')
['c:\\PerfLogs']
I tried to replicate this under Linux with "chmod 000", but so far I'm unable
to. One more example from Windows: "c:\\System Volume Information". This is
also the case for user-created directories where python interpreter does not
have access rights to directory - I have one like that on my client's machine.
--
components: Library (Lib), Windows
messages: 264917
nosy: kwarzecha7, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: glob.glob incorrect results under windows when pathname exists but
interpreter does not have access permissions to pathname
type: behavior
versions: Python 3.5
___
Python tracker
<http://bugs.python.org/issue26968>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com