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 Jordan Hueckstaedt
Recipients Jordan Hueckstaedt
Date 2019-01-09.03:00:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547002815.07.0.33405132487.issue35692@roundup.psfhosted.org>
In-reply-to
Content
Tested in 3.7.0 on windows 10.
This looks related to https://bugs.python.org/issue22759


>>> import pathlib
>>> pathlib.Path(r"E:\Whatever\blah.txt").exists()  # This drive doesn't exist
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\jordanhu\AppData\Local\Continuum\anaconda2\envs\py3\lib\pathlib.py", line 1318, in exists
    self.stat()
  File "C:\Users\jordanhu\AppData\Local\Continuum\anaconda2\envs\py3\lib\pathlib.py", line 1140, in stat
    return self._accessor.stat(self)
PermissionError: [WinError 21] The device is not ready: 'E:\\Whatever\\blah.txt'
>>> pathlib.Path(r"C:\Whatever\blah.txt").exists() # This drive exists
False
History
Date User Action Args
2019-01-09 03:00:18Jordan Hueckstaedtsetrecipients: + Jordan Hueckstaedt
2019-01-09 03:00:15Jordan Hueckstaedtsetmessageid: <1547002815.07.0.33405132487.issue35692@roundup.psfhosted.org>
2019-01-09 03:00:15Jordan Hueckstaedtlinkissue35692 messages
2019-01-09 03:00:14Jordan Hueckstaedtcreate