I love this project, but :
When I try to copy a file to a long path (>255 chars) and it gives an error.
private void button1_Click(object sender, EventArgs e)
string s1 = @"c:\tmp";
string s2 = "\\aaaaaaaaaaaaaaaaaa01\\aaaaaaaaaaaaaaaaaa02\\aaaaaaaaaaaaaaaaaa03\\aaaaaaaaaaaaaaaaaa04";
string s3 = "\\aaaaaaaaaaaaaaaaaa05\\aaaaaaaaaaaaaaaaaa06\\aaaaaaaaaaaaaaaaaa07\\aaaaaaaaaaaaaaaaaa08";
string s4 = "\\aaaaaaaaaaaaaaaaaa09\\aaaaaaaaaaaaaaaaaa10\\aaaaaaaaaaaaaaaaaa11\\aaaaaaaaaaaaaaaaaa12";
string destDir = s1 + s2 + s3 + s4;
string destFile = "123456789012345678901234567890.txt";
string destPath = destDir + "\\" + destFile; // Total size = 293 chars
bool success = File.Copy("c:\\tmp\\vvv2.txt", destPath); // Gives error
It seems that NativeMethods.CopyFileEx() in the File.CopyMoveInternal method uses the normal paths (sourcePath, destinationPath) instead of the long ones (sourcePathLp, destinationPathLp).
Changing this resolves the error.
Could you please fix this ?