зеркало из https://github.com/mono/ikvm-fork.git
UnauthorizedAccessException caused by already existing file or directory should cause createFileExclusively() to return false instead of throwing an exception.
This commit is contained in:
Родитель
0ea53c4cbb
Коммит
d556c8d6fc
|
@ -1367,7 +1367,10 @@ namespace IKVM.NativeCode.java
|
|||
}
|
||||
catch (System.UnauthorizedAccessException x)
|
||||
{
|
||||
throw new jiIOException(x.Message);
|
||||
if (!System.IO.File.Exists(path) && !System.IO.Directory.Exists(path))
|
||||
{
|
||||
throw new jiIOException(x.Message);
|
||||
}
|
||||
}
|
||||
catch (System.NotSupportedException x)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче