[Mono-list] error on FileInfo.CopyTo() / .MoveTo()

larsfp register at falk-petersen.no
Tue Feb 27 05:00:09 EST 2007




Dick Porter-2 wrote:
> 
> On Mon, 2007-02-19 at 15:20 -0800, larsfp wrote:
>> hi
>> 
>> i use this code to copy files from one dir to another:
> 
>> but it prints:
>> copying /home/lars/temp/test1/testfil to /home/lars/temp/test2/
>> copy failed Win32 IO returned 82. Path: /home/lars/temp/test1/testfil" or
>> "/home/lars/temp/test2/
> 
> You're getting EISDIR, but we don't have a pretty error message for that
> at the moment.  I'll fix the exception text, but the original bug is
> yours.  FileInfo.CopyTo() expects a target filename, not a directory.
> 
> - Dick
> 
> 
>  
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 


you're absolutely right. thanks. i've been fighting this problem for a long
time. works now.
-- 
View this message in context: http://www.nabble.com/error-on-FileInfo.CopyTo%28%29---.MoveTo%28%29-tf3255821.html#a9178781
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list