[issue21876] os.rename(src, dst) does nothing when src and dst files are hard-linked

Aaron Swan report at bugs.python.org
Fri Jun 27 21:22:23 CEST 2014


Aaron Swan added the comment:

Although using the mv command *does* remove the src file on red hat linux, I can accept that the POSIX requirement that the source *must* be removed might not apply if source is the same as the destination file.

It would be nice if the behavior was consistent, but I think the POSIX requirements are somewhat up for interpretation in this case.

The documentation should probably be updated at the least.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21876>
_______________________________________


More information about the Python-bugs-list mailing list