We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public static void Copy(string sourcePath, string destinationPath, bool overwrite) { if (Common.IsRunningOnMono() && Common.IsPlatformUnix()) SysFile.Copy(sourcePath, destinationPath, overwrite); string normalizedSourcePath = Path.NormalizeLongPath(sourcePath, "sourcePath"); string normalizedDestinationPath = Path.NormalizeLongPath(destinationPath, "destinationPath"); if (!NativeMethods.CopyFile(normalizedSourcePath, normalizedDestinationPath, !overwrite)) throw Common.GetExceptionFromLastWin32Error(); }
It should be "return" or smth after SysFile.Copy. For example:
public static void Copy(string sourcePath, string destinationPath, bool overwrite) { if (Common.IsNotWindows()) { SysFile.Copy(sourcePath, destinationPath, overwrite); **return;** } string normalizedSourcePath = Path.NormalizeLongPath(sourcePath, "sourcePath"); string normalizedDestinationPath = Path.NormalizeLongPath(destinationPath, "destinationPath"); if (!NativeMethods.CopyFile(normalizedSourcePath, normalizedDestinationPath, !overwrite)) throw Common.GetExceptionFromLastWin32Error(); }
The text was updated successfully, but these errors were encountered:
Fixes for #91 and switch from master to main
4437b1c
peteraritchie
No branches or pull requests
It should be "return" or smth after SysFile.Copy. For example:
The text was updated successfully, but these errors were encountered: