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

2009-11-29 Thread Rodrigo Kumpera
Patch looks great, please commit. On Fri, Nov 27, 2009 at 12:14 PM, Carlos Alberto Cortez < calberto.cor...@gmail.com> wrote: > Yes - sorry, I forgot to send it with the previous patch ;-) > > Carlos. > > 2009/11/27 Rodrigo Kumpera > > Do you have a test case for that? >> >> >> On Fri, Nov 27

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

2009-11-27 Thread Carlos Alberto Cortez
Yes - sorry, I forgot to send it with the previous patch ;-) Carlos. 2009/11/27 Rodrigo Kumpera > Do you have a test case for that? > > > On Fri, Nov 27, 2009 at 12:09 AM, Carlos Alberto Cortez < > calberto.cor...@gmail.com> wrote: > >> Hey, >> >> The attached patch on CopyFile on our io-layer

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

2009-11-27 Thread Rodrigo Kumpera
Do you have a test case for that? On Fri, Nov 27, 2009 at 12:09 AM, Carlos Alberto Cortez < calberto.cor...@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 cas

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

2009-11-26 Thread Carlos Alberto Cortez
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 the