[Mono-bugs] [Bug 78239][Min] New - Directory.Exists() wrongly throwing exception when access is denied

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Apr 28 19:01:19 EDT 2006


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 dsd at gentoo.org.

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: mono-bugs at ximian.com                            
+ReportedBy: dsd at gentoo.org               
+QAContact: mono-bugs at ximian.com
+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)


More information about the mono-bugs mailing list