[issue22040] Add a "force" parameter to shutil.rmtree
Charles-François Natali
report at bugs.python.org
Tue Jul 22 22:02:33 CEST 2014
Charles-François Natali added the comment:
On Unix at least, this doesn't apply: rm -f doesn't mean "ignore permissions", but but rather don't ask confirmation which the rm commands asks in some cases (empty file, directory, etc).
Ans the code posted wouldn't work, since the permission to remove a file applies to to the file, but to the parent directory (must have write permission). And we certainly don't want to change the directory permission anyway.
Not sure about Windows, though.
----------
nosy: +neologix
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22040>
_______________________________________
More information about the Python-bugs-list
mailing list