[issue35951] os.renames() creates directories if original name doesn't exist
Chris Jerdonek
report at bugs.python.org
Sun Feb 10 22:07:58 EST 2019
Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:
Lacking permissions seems very different to me from the source directory or file not existing. For example, in the example I provided, I did have the needed permissions.
Incidentally (and this is a separate documentation issue), the note seems unclear as to whether "the leaf directory or file" the user lacks permissions to remove is in reference to the "rightmost path segments of the old name" being pruned away, or the new directory structure to be removed on failure.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35951>
_______________________________________
More information about the Python-bugs-list
mailing list