Index: mcs/class/corlib/System.IO/ChangeLog =================================================================== --- mcs/class/corlib/System.IO/ChangeLog (revision 60118) +++ mcs/class/corlib/System.IO/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2006-05-01 Daniel Drake + + * Directory.cs: Return false (as documented) on ERROR_ACCESS_DENIED in + Exists() rather than throwing an exception. Bug #78239. + 2006-04-29 Atsushi Enomoto * UnexceptionalStreamReader.cs (Read): Fix for #78218, where we Index: System.IO/Directory.cs =================================================================== --- mcs/class/corlib/System.IO/Directory.cs (revision 60118) +++ mcs/class/corlib/System.IO/Directory.cs (working copy) @@ -173,7 +173,8 @@ exists = MonoIO.ExistsDirectory (path, out error); if (error != MonoIOError.ERROR_SUCCESS && - error != MonoIOError.ERROR_PATH_NOT_FOUND) { + error != MonoIOError.ERROR_PATH_NOT_FOUND && + error != MonoIOError.ERROR_ACCESS_DENIED) { throw MonoIO.GetException (path, error); }