[New-bugs-announce] [issue32847] Add DirectoryNotEmptyError subclass of OSError

Barry A. Warsaw report at bugs.python.org
Wed Feb 14 22:11:57 EST 2018


New submission from Barry A. Warsaw <barry at python.org>:

I just ran across errno 39 (Directory not empty) when using Path.rename(newdir) when newdir already existed and was not empty.  I realized that OSError exceptions don't have a DirectoryNotEmptyError subclass.  Maybe we should add one?

Probably not important or common enough to add for 3.7 given we're in beta now.

----------
messages: 312192
nosy: barry
priority: normal
severity: normal
status: open
title: Add DirectoryNotEmptyError subclass of OSError
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32847>
_______________________________________


More information about the New-bugs-announce mailing list