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

Check for existing install location #1009

Merged
merged 5 commits into from
Aug 19, 2024
Merged

Conversation

davidanthoff
Copy link
Collaborator

@davidanthoff davidanthoff commented Aug 10, 2024

Fixes #773.

@davidanthoff davidanthoff marked this pull request as ready for review August 10, 2024 19:29
return Ok(());
}

std::fs::remove_dir_all(install_choices.install_location)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Or maybe this is too drastic? A user might have picked a folder where other (legit) stuff is, and then we delete it all. Probably not good... Maybe we just output an error message saying: "select a folder that doesn't exist" or something like that?

@davidanthoff davidanthoff merged commit 3a1b688 into main Aug 19, 2024
23 checks passed
@davidanthoff davidanthoff deleted the check-existing-install-location branch August 19, 2024 18:11
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.

Symlink error when link/file exist
1 participant