Rename file without overwriting existing files
Steve D'Aprano
steve+python at pearwood.info
Thu Feb 9 06:47:54 EST 2017
On Tue, 31 Jan 2017 11:17 am, Ben Finney wrote:
> 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.
Indeed it is not, and we're often very sloppy about describing file system
differences as if they were OS differences.
--
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.
More information about the Python-list
mailing list