Exemple #1
0
 public void CopyFile(string sourcePath, string targetPath, bool bOverwrite = false)
 {
     if (!IsLongPath(sourcePath) && !IsLongPath(targetPath))
     {
         File.Copy(sourcePath, targetPath, bOverwrite);
     }
     else
     {
         Win32LongPathFile.Copy(sourcePath, targetPath, bOverwrite);
     }
 }