[Mono-bugs] [Bug 58147][Maj] New - Directory.GetFiles throws an exception on empty directories

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 6 May 2004 13:12:21 -0400 (EDT)

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 joergr@voelcker.com.


--- shadow/58147	2004-05-06 13:12:21.000000000 -0400
+++ shadow/58147.tmp.14648	2004-05-06 13:12:21.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 58147
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Directory.GetFiles throws an exception on empty directories
+Description of Problem:
+Directory.GetFiles throws DirectoryNotFoundException on empty directories.
+Steps to reproduce the problem:
+1. Compile attached sample.
+2. Run it on empty directory.
+3. Create a file in the directory
+4. Run it again
+Actual Results:
+Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a
+part of the path "Empty"
+in <0x00356> System.IO.Directory:GetFileSystemEntries
+in <0x00018> System.IO.Directory:GetFiles (string,string)
+in <0x000c3> Test:Main (string[])
+Expected Results:
+No exception.
+How often does this happen? 
+Additional Information:
+This bug seems to be introduced by the recent changes in io.c.