[Issue 5032] std.file.rename acts differently on Windows and Linux when the target file already exists.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 10 19:43:22 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=5032



--- Comment #4 from Andrei Alexandrescu <andrei at erdani.com> 2013-03-10 19:43:21 PDT ---
No, rename must clobber. It's the only way things can be done atomically on
Unix as far as I can tell. If we have code such as "if (!exists(target))
rename(source, target)" we have a race condition.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list