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

Allow MirrorProvider to handle/hydrate Read only files in the mirrored path #288

Merged
merged 1 commit into from
Sep 21, 2018

Conversation

nickgra
Copy link
Member

@nickgra nickgra commented Sep 20, 2018

If a file in the path that is being mirrored is read only (think in the context of it being a Perforce enlistment), the mirror provider will fail on hydration as it will try opening with Read/Write permission. Let's explicitly open with FileAccess.Read to avoid this issue since we don't need Write permission on the parent file.

Copy link
Contributor

@sanoursa sanoursa left a comment

Choose a reason for hiding this comment

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

Yep, no need for a write handle here.

@nickgra nickgra merged commit 485ef6c into microsoft:master Sep 21, 2018
@nickgra nickgra deleted the mirrorProviderReadOnly branch September 21, 2018 18:50
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.

3 participants