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 eryksun
Recipients Daniel Lepage, eryksun
Date 2015-12-05.14:46:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449326811.34.0.135771958481.issue25803@psf.upfronthosting.co.za>
In-reply-to
Content
The mkdir method needs a fix similar to what was done for issue 25583. For example, currently on Windows the exist_ok option doesn't handle the PermissionError raised when [accidentally] trying to create the root directory:

    >>> pathlib.Path('C:/').mkdir(exist_ok=True)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "C:\Program Files\Python 3.5\lib\pathlib.py", line 1199, in mkdir
        self._accessor.mkdir(self, mode)
      File "C:\Program Files\Python 3.5\lib\pathlib.py", line 371, in wrapped
        return strfunc(str(pathobj), *args)
    PermissionError: [WinError 5] Access is denied: 'C:\\'
History
Date User Action Args
2015-12-05 14:46:51eryksunsetrecipients: + eryksun, Daniel Lepage
2015-12-05 14:46:51eryksunsetmessageid: <1449326811.34.0.135771958481.issue25803@psf.upfronthosting.co.za>
2015-12-05 14:46:51eryksunlinkissue25803 messages
2015-12-05 14:46:51eryksuncreate