Kevin Norris added the comment: When the directory name is '...', the error is different:
>>> pth = pathlib.Path('//?/C:/...') >>> pth.mkdir() >>> pth.resolve().rmdir() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python34\lib\pathlib.py", line 1141, in rmdir self._accessor.rmdir(self) File "C:\Python34\lib\pathlib.py", line 323, in wrapped return strfunc(str(pathobj), *args) PermissionError: [WinError 5] Access is denied: 'C:\\...' >>> pth.rmdir() >>> ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22299> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com