We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d14e226 + 9c8516f commit 6f7c7acCopy full SHA for 6f7c7ac
src/ScriptEngine.HostedScript/Library/FileContext.cs
@@ -118,17 +118,17 @@ public bool Exist()
118
try
119
{
120
File.GetAttributes(FullName);
121
+ return true;
122
}
- catch (FileNotFoundException)
123
- {
124
- return false;
125
- }
126
- catch (DirectoryNotFoundException)
127
128
129
130
-
131
- return true;
+ catch (FileNotFoundException) { }
+ catch (DirectoryNotFoundException) { }
+ catch (ArgumentException) { }
+ catch (NotSupportedException) { }
+ catch (PathTooLongException) { }
+ catch (UnauthorizedAccessException) { }
+ catch (IOException) { }
+
+ return false;
132
133
134
[ContextMethod("Размер", "Size")]
0 commit comments