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

Dick Porter dick at ximian.com
Thu Feb 22 09:38:23 EST 2007

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070222/62229e26/attachment.bin 

More information about the Mono-list mailing list