[Mono-dev] [Patch] Report an error if src and dest are the same in Copy

Carlos Alberto Cortez calberto.cortez at gmail.com
Thu Nov 26 21:09:07 EST 2009


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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091127/b8a296ae/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: io-copy.patch
Type: text/x-patch
Size: 934 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091127/b8a296ae/attachment.bin 

More information about the Mono-devel-list mailing list