[Mono-devel-list] File::Move(string,string) patch
Jb Evain
mono at evain.net
Sun Dec 12 14:50:53 EST 2004
Ben Maurer wrote:
>On Sun, 2004-12-12 at 19:44 +0100, Jb Evain wrote:
>
>
>>Msft Framework does not complains if you File::Move a file on itself.
>>Mono currently send an exception saying that the destination file
>>already exists.
>>
>>
>
>This might be implemented inside io-layer. Can you check if the MoveFile
>api on Windows complains on moving a file to itself? If so, this should
>be fixed there.
>
>-- Ben
>
You're right.
The MoveFile fonction from Windows API does not complains on moving a
file to itself.
I think that in File::Move, you only need to remove the last check. The
io layer should also handle the case where the destination file exists
but that is not the same that the source.
I let C hackers modify the io layer, do you want I to fill a bug report
in bugzilla or do you handle this ?
Jb
More information about the Mono-devel-list
mailing list