[issue26968] glob.glob incorrect results under windows when pathname exists but interpreter does not have access permissions to pathname

2021-02-25 Thread Eryk Sun
Eryk Sun added the comment: Issue 28075 extended the os.stat() and os.lstat() implementation to query basic stat informatiom from the parent directory if opening the file fails with ERROR_ACCESS_DENIED. This change first became available in Python 3.5.3. Previously it was only querying the

[issue26968] glob.glob incorrect results under windows when pathname exists but interpreter does not have access permissions to pathname

2016-05-05 Thread Eryk Sun
Eryk Sun added the comment: The access control list of a file may not grant or may deny the current user the right to read file attributes (i.e. lstat). Generally you don't have to worry about granted access to parent directories when attempting to stat the file or directory, since even

[issue26968] glob.glob incorrect results under windows when pathname exists but interpreter does not have access permissions to pathname

2016-05-05 Thread Krzysztof Warzecha
Krzysztof Warzecha added the comment: >>> os.lstat('c:\\PerfLogs') Traceback (most recent call last): File "", line 1, in PermissionError: [WinError 5] Odmowa dostępu: 'c:\\PerfLogs' (thats "Permission denied") -- ___ Python tracker

[issue26968] glob.glob incorrect results under windows when pathname exists but interpreter does not have access permissions to pathname

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What returns os.lstat('c:\\PerfLogs')? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue26968] glob.glob incorrect results under windows when pathname exists but interpreter does not have access permissions to pathname

2016-05-05 Thread Krzysztof Warzecha
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*')