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

Fixes #554 file is readonly #555

Merged
merged 1 commit into from
Apr 28, 2021
Merged

Fixes #554 file is readonly #555

merged 1 commit into from
Apr 28, 2021

Conversation

msevestre
Copy link
Member

No description provided.

@@ -114,7 +114,7 @@ public void Save(IMoBiContext context)
private void verifyFileNotReadOnly(string projectFilePath)
{
var fileInfo = new FileInfo(projectFilePath);
if (!fileInfo.IsReadOnly)
if (!fileInfo.Exists || !fileInfo.IsReadOnly)
Copy link
Member Author

Choose a reason for hiding this comment

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

@Yuri05 A file that does not exist IS readonly. WTF

Copy link
Member

Choose a reason for hiding this comment

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

I guess it's more a philosopical question :)

@msevestre msevestre merged commit e7c4d84 into develop Apr 28, 2021
@msevestre msevestre deleted the 554-file-is-readonly branch April 28, 2021 19:57
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