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 <1579080933.31.0.376881618975.issue39340@roundup.psfhosted.org>
In-reply-to
Content
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')"
History
Date User Action Args
2020-01-15 09:35:33PeterFSsetrecipients: + PeterFS
2020-01-15 09:35:33PeterFSsetmessageid: <1579080933.31.0.376881618975.issue39340@roundup.psfhosted.org>
2020-01-15 09:35:33PeterFSlinkissue39340 messages
2020-01-15 09:35:33PeterFScreate