lilydjwg <lilyd...@gmail.com> added the comment:
Yes issue26660 is similar but not the same. On Windows it seems a read-only file cannot be deleted while on Linux a file resident in a non-searchable directory cannot be deleted. An onerror for TemporaryDirectory will work. Also I'd like to add an optional dir_fd argument for onerror. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35144> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com