[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2016-09-17 Thread Berker Peksag
Berker Peksag added the comment: This is resolved by issue 28075. -- nosy: +berker.peksag resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-08-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-30 Thread R. David Murray
Changes by R. David Murray : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-17 Thread Thomas Heller
Thomas Heller added the comment: > When you say "os.path.isdir(...) works fine", you mean it's returning False? As shown in the original report (http://bugs.python.org/issue21516#msg218664) os.path.isdir() returns True; which is correct since c:\Users\admin is a directory on my machine. --

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently os.path.isdir() has been special-cased under Windows to use other, native APIs (see #11583). -- nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: When you say "os.path.isdir(...) works fine", you mean it's returning False? -- nosy: +pitrou ___ Python tracker ___ ___

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-16 Thread eryksun
eryksun added the comment: > but only for ERROR_SHARING_VIOLATION. Shouldn't this > include ERROR_ACCESS_DENIED? To clarify, I meant that I think it should fall back to using FindFirstFile for either error, not that ERROR_SHARING_VIOLATION somehow includes ERROR_ACCESS_DENIED. (Proofreading?

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-16 Thread eryksun
eryksun added the comment: nt._isdir calls GetFileAttributes. CPython's stat implementation calls CreateFile to get a handle to pass to GetFileInformationByHandle. If it can't get a valid handle, it falls back to calling FindFirstFileW to get the file information, but only for ERROR_SHARING_VI

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-16 Thread Eric V. Smith
Changes by Eric V. Smith : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-16 Thread Matthew Barnett
Matthew Barnett added the comment: I wouldn't call it a crash. It's an exception. -- nosy: +mrabarnett ___ Python tracker ___ ___ Pyth

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-05-16 Thread Thomas Heller
Thomas Heller added the comment: Well, not 'readonly' directories but directories where the user has no access rights. I corrected the title of this bug. -- title: pathlib.Path(...).is_dir() crashes on readonly directories (Windows) -> pathlib.Path(...).is_dir() crashes on some direct