Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 65adfdb

Browse files
committed
Handle UnauthorizedAccessException in AbstractProject.IsReadOnly
1 parent 5602be8 commit 65adfdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public virtual bool IsReadOnly {
188188
try {
189189
FileAttributes attributes = File.GetAttributes(FileName);
190190
return ((FileAttributes.ReadOnly & attributes) == FileAttributes.ReadOnly);
191-
} catch (FileNotFoundException) {
191+
} catch (UnauthorizedAccessException) {
192192
return false;
193193
} catch (IOException) {
194194
// directory not found, network path not available, etc.

0 commit comments

Comments
 (0)