Message 315077 - Python tracker

Message315077

Author yuliu
Recipients giampaolo.rodola, paul.moore, steve.dower, tarek, tim.golden, yuliu, zach.ware
Date 2018-04-08.02:51:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1523155916.86.0.682650639539.issue33240@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-04-08 02:51:57yuliusetrecipients: + yuliu, paul.moore, giampaolo.rodola, tim.golden, tarek, zach.ware, steve.dower
2018-04-08 02:51:56yuliusetmessageid: <1523155916.86.0.682650639539.issue33240@psf.upfronthosting.co.za>
2018-04-08 02:51:56yuliulinkissue33240 messages
2018-04-08 02:51:55yuliucreate