What does this mean exactly? I’m doing something like this:
File.Copy(@'\\foo\bar\baz.txt', @'c:\test\baz.txt');
MSDN doesn’t describe this exception except in general terms, and googling around just yields tables of error codes.
I’ve confirmed the source file exists, and I’m 99% sure that I have the permissions to copy the file to the destination location.
Check this article for some information about using symlinks in .Net: ‘Manipulating NTFS Junction Points in .NET‘.
According to this article:
But there is a method how to actually get the target of the symlink, and then you’ll be able to use File.Copy with it.