Skip to content

Catch UnauthorizedAccessException in file path enumeration #480

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

Merged
merged 1 commit into from
Jun 1, 2017

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Jun 1, 2017

This change fixes an issue where the Workspace's file enumeration logic
would throw an UnauthorizedAccessException when it encounters an
unaccessible file or path. The fix is to make the file enumeration code
more robust so that it catches these exceptions and continues
enumerating as far as it can.

Resolves PowerShell/vscode-powershell#813.

This change fixes an issue where the Workspace's file enumeration logic
would throw an UnauthorizedAccessException when it encounters an
unaccessible file or path.  The fix is to make the file enumeration code
more robust so that it catches these exceptions and continues
enumerating as far as it can.

Resolves PowerShell/vscode-powershell#813.
@daviwil daviwil added this to the 1.2.1 milestone Jun 1, 2017
@daviwil daviwil merged commit 0788a3e into PowerShell:master Jun 1, 2017
@daviwil daviwil deleted the fix-vsc-813 branch June 1, 2017 18:47
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.

PowerShell Editor Services terminating error trying to access external USB recycle bin
2 participants