UnauthorizedAccessException caused by already existing file or directory should cause createFileExclusively() to return false instead of throwing an exception.

This commit is contained in:
jfrijters 2010-11-24 06:41:25 +00:00
Родитель 0ea53c4cbb
Коммит d556c8d6fc
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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)
{