This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kwarzecha7
Recipients kwarzecha7, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-05-05.19:38:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462477111.96.0.426689886808.issue26968@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-05-05 19:38:32kwarzecha7setrecipients: + kwarzecha7, paul.moore, tim.golden, zach.ware, steve.dower
2016-05-05 19:38:31kwarzecha7setmessageid: <1462477111.96.0.426689886808.issue26968@psf.upfronthosting.co.za>
2016-05-05 19:38:31kwarzecha7linkissue26968 messages
2016-05-05 19:38:31kwarzecha7create