[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:14:03 PDT 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-10 19:14:02 PDT ---
(In reply to comment #2)
> Is that the right thing to do, though? I'd expect the function to throw if the
> target exists. Doesn't help that the docs for either "copy" and "rename" do not
> specify what it does in that situation.

Yeah I agree. If anything make the forced renaming an option, not a default
behavior. That's how most tools work on win32 anyway, dunno about Posix though.

-- 
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