Atomicity of file-copying/moving
Nordlöw via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 17 13:43:32 PDT 2017
On Wednesday, 17 May 2017 at 20:02:44 UTC, Per Nordlöw wrote:
>> The standard way is to copy the source to a temporary file on
>> the same file system as the target file followed by hardlinking
>
> Correction: should be renaming.
Here's an implementation in Python (3):
https://github.com/nordlow/containerize/blob/1dbcf57c1240882f8492f261962df0dfaa4edecb/containerize.py#L132
I would like to have it in D too. Any advice regarding the port?
More information about the Digitalmars-d-learn
mailing list