Skip to content
New issue

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

Make file locator handle Unix and DOS style paths more smartly #1522

Merged
merged 2 commits into from
Feb 11, 2023

Conversation

jas88
Copy link
Member

@jas88 jas88 commented Feb 10, 2023

Finish previous fix - autodetect whether to use Unix or DOS style paths and adjust separator accordingly. Can't rely on Path.Combine - that gets it right for the local machine, not the remote one!

@jas88 jas88 requested a review from rkm February 10, 2023 21:19
@@ -18,32 +18,46 @@ internal class MdfFileAttachLocations
{
public MdfFileAttachLocations(DirectoryInfo originDirectory, string databaseDirectoryFromPerspectiveOfDatabaseServer, string copyToDirectoryOrNullIfDatabaseIsLocalhost)
{
if (databaseDirectoryFromPerspectiveOfDatabaseServer == null)
throw new ArgumentNullException("databaseDirectoryFromPerspectiveOfDatabaseServer");
ArgumentNullException.ThrowIfNull(databaseDirectoryFromPerspectiveOfDatabaseServer);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's pretty neat!

@jas88 jas88 merged commit c26c44e into develop Feb 11, 2023
@jas88 jas88 deleted the feature/dblocatorfix branch August 20, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants