New submission from Yu Liu <neophyl...@gmail.com>: Given the following directory structure on a Windows machine: - foo - bar
a call to `shutil.rmtree("foo")` will fail when the inner folder `bar` is opened in an Explorer. The error message indicates the `foo` directory is not empty, while after the execution, although it failed, the `foo` directory is empty. So the inner folder `bar` was removed successfully, but `foo` was not. And the error message is misleading. It will not fail when `foo` is opened in an Explorer, neither on Linux system. ---------- components: Library (Lib), Windows messages: 315077 nosy: giampaolo.rodola, paul.moore, philius, steve.dower, tarek, tim.golden, zach.ware priority: normal severity: normal status: open title: shutil.rmtree fails when the inner floder is opened in Explorer on Windows type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33240> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com