[New-bugs-announce] [issue33240] shutil.rmtree fails when the inner floder is opened in Explorer on Windows
Yu Liu
report at bugs.python.org
Sat Apr 7 22:51:56 EDT 2018
New submission from Yu Liu <neophyliam at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33240>
_______________________________________
More information about the New-bugs-announce
mailing list