New submission from Barry A. Warsaw <>:

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 

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 <>
Python-bugs-list mailing list

Reply via email to