Browse Source

Handle IOException (network path not available) in AbstractProject.get_ReadOnly

pull/39/merge
Daniel Grunwald 13 years ago
parent
commit
52e595eb16
  1. 3
      src/Main/Base/Project/Src/Project/AbstractProject.cs

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

@ -132,7 +132,8 @@ namespace ICSharpCode.SharpDevelop.Project
return ((FileAttributes.ReadOnly & attributes) == FileAttributes.ReadOnly); return ((FileAttributes.ReadOnly & attributes) == FileAttributes.ReadOnly);
} catch (FileNotFoundException) { } catch (FileNotFoundException) {
return false; return false;
} catch (DirectoryNotFoundException) { } catch (IOException) {
// directory not found, network path not available, etc.
return true; return true;
} }
} }

Loading…
Cancel
Save