[Mono-dev] [Patch] Report an error if src and dest are the same in Copy
Rodrigo Kumpera
kumpera at gmail.com
Fri Nov 27 08:59:14 EST 2009
Do you have a test case for that?
On Fri, Nov 27, 2009 at 12:09 AM, Carlos Alberto Cortez <
calberto.cortez at gmail.com> wrote:
> Hey,
>
> The attached patch on CopyFile on our io-layer -which is used by
> System.IO.File.Copy- check if the source and the destination are the same,
> and in that case, report that the file is currently in use, and proceed to
> throw an exception. I tried to add this check directly in our C# side, but
> then moved the check to our io-layer side so we could take advantage of our
> IOMAP capability.
>
> Could anybody with experience in the io-layer review?
>
> Thanks!
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091127/b0ff9e0c/attachment-0001.html
More information about the Mono-devel-list
mailing list