Browse Source

Handle UnauthorizedAccessException in AbstractProject.IsReadOnly

pull/512/head
Daniel Grunwald 12 years ago
parent
commit
65adfdb812
  1. 2
      src/Main/Base/Project/Src/Project/AbstractProject.cs

2
src/Main/Base/Project/Src/Project/AbstractProject.cs

@ -188,7 +188,7 @@ namespace ICSharpCode.SharpDevelop.Project @@ -188,7 +188,7 @@ namespace ICSharpCode.SharpDevelop.Project
try {
FileAttributes attributes = File.GetAttributes(FileName);
return ((FileAttributes.ReadOnly & attributes) == FileAttributes.ReadOnly);
} catch (FileNotFoundException) {
} catch (UnauthorizedAccessException) {
return false;
} catch (IOException) {
// directory not found, network path not available, etc.

Loading…
Cancel
Save