Bruno P. Kinoshita <brunodepau...@yahoo.com.br> added the comment:

I think eryksun is correct. Reproduced it locally. Setting to read-only 
initially did not raise the issue, but then as administrator I removed the 
inherited permissions and set it to read-only for my user, then it raised the 
exact same WinError 5 Permission Error.

With the extra code to remove the readonly attribute, the directory was 
successfully deleted.

>It does so as an accident of history, not because it's justified

I think it would be easier for users if this attribute was not copied, 
especially as it looks like other attributes are not being copied (on Win). 
That would remove the need of this extra code when using Windows.

----------
nosy: +kinow

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38868>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to