[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point
Jeffrey Kintscher
report at bugs.python.org
Sat Jun 8 01:32:38 EDT 2019
Jeffrey Kintscher <websurfer at surf2c.net> added the comment:
Another data point:
On macOS 10.14.4, unlink() returns EBUSY when it tries to delete the mount point. tempfile.TemporaryDirectory() doesn't handle EBUSY and ends up skipping over the mount point and propagates the OSError exception up to the caller. It leaves the mounted directory tree untouched.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36422>
_______________________________________
More information about the Python-bugs-list
mailing list