Skip to content

Commit

Permalink
Additional error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1ll committed Apr 5, 2019
1 parent c49be27 commit 6476833
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public IEnumerable<AccessRuleEntry> EnumerateAccessRules(string path)
{
authorizationRuleCollection = Directory.GetAccessControl(path).GetAccessRules(true, true, typeof(System.Security.Principal.SecurityIdentifier));
}
catch (InvalidOperationException)
{
}
catch (UnauthorizedAccessException)
{
}
Expand Down

0 comments on commit 6476833

Please sign in to comment.