This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author PeterFS
Recipients PeterFS
Date 2020-01-15.09:35:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Ubuntu 18.4 and Windows 7 has different behaviour when deleting write protected files with rmtree.

Ubuntu silently deletes them (unexpected?)
Windows moans about access denied (expected?)

Reproduction method linux
mkdir test; touch test/file.txt; chmod -w test/file.txt

Reproduction method windows
mkdir test && type nul > test\file.txt && attrib +R test\file.txt

Reproduction method cont.
python3 -c "import shutil; shutil.rmtree('test')"
Date User Action Args
2020-01-15 09:35:33PeterFSsetrecipients: + PeterFS
2020-01-15 09:35:33PeterFSsetmessageid: <>
2020-01-15 09:35:33PeterFSlinkissue39340 messages
2020-01-15 09:35:33PeterFScreate