[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:59:13 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5032
--- Comment #7 from Andrei Alexandrescu <andrei at erdani.com> 2013-03-10 19:59:12 PDT ---
(In reply to comment #6)
> (In reply to comment #5)
> > I think a clobber option with the default set to "no" would be better.
> > Atomicity is a valid concern, but I don't think the default behavior should
> > imply the risk of accidentally overwriting files.
>
> Atomicity is not a concern as much as a gating factor. How to implement the
> clobber option "no" on Unix?
>
> > It's too late to change the behavior of "copy", and atomicity does not apply to
> > it anyway.
>
> This is remove. It must clobber the target on both Windows and Unix.
I mean "This is rename." :o)
--
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