Rename file without overwriting existing files

Ben Finney ben+python at benfinney.id.au
Mon Jan 30 19:17:56 EST 2017


Peter Otten <__peter__ at web.de> writes:

> http://stackoverflow.com/questions/3222341/how-to-rename-without-race-conditions
>
> and from a quick test it appears to work on Linux:

By “works on Linux”, I assume you mean “works on filesystems that use
inodes and hard links”. That is not true for all filesystems, even on
Linux.

-- 
 \      “[Entrenched media corporations will] maintain the status quo, |
  `\       or die trying. Either is better than actually WORKING for a |
_o__)                  living.” —ringsnake.livejournal.com, 2007-11-12 |
Ben Finney



More information about the Python-list mailing list