Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78239 --- shadow/78239 2006-04-28 19:01:19.000000000 -0400 +++ shadow/78239.tmp.4561 2006-04-28 19:01:19.000000000 -0400 @@ -0,0 +1,30 @@ +Bug#: 78239 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Minor +Component: CORLIB +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Directory.Exists() wrongly throwing exception when access is denied + +The documentation for System.IO.Directory.Exists() says: + +If the caller does not have sufficient permissions to read the files in the +directory specified by path, no exception is thrown and the method returns +false regardless of the existence of path + +Actually, the current class libraries throw an exception here: + +Unhandled Exception: System.UnauthorizedAccessException: Access to the path +"a/b" is denied. +in <0x0007b> System.IO.Directory:Exists (System.String path) +in <0x00017> Test:Main (System.String[] args) _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
