[Mono-bugs] [Bug 26133] Changed - Directory.GetFiles fails with an IOException on empty folders

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
12 Jun 2002 00:36:06 -0000


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 gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=26133

--- shadow/26133	Tue Jun 11 20:33:45 2002
+++ shadow/26133.tmp.1406	Tue Jun 11 20:36:06 2002
@@ -1,13 +1,13 @@
 Bug#: 26133
 Product: Mono/Runtime
 Version: unspecified
 OS: Mandrake 8.1
 OS Details: 
-Status: ASSIGNED   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Normal
 Component: misc
 AssignedTo: gonzalo@ximian.com                            
 ReportedBy: girish_bharadwaj@hotmail.com               
 QAContact: mono-bugs@ximian.com
@@ -49,7 +49,27 @@
 Additional Information:
 Tested only on linux.
 
 ------- Additional Comments From gonzalo@ximian.com  2002-06-11 20:33 -------
 Created an attachment (id=1851)
 Solves the bug
+
+
+------- Additional Comments From gonzalo@ximian.com  2002-06-11 20:36 -------
+The patch above fixes the error for linux.
+In windows it worked without applying the patch and also with it.
+
+Moreover, under windows, when running the test case using a non-existing
+directory, i get:
+~/work/tests $ mono ./direc.exe ma
+
+(process:1332): ** WARNING **: unhandled exception
+System.IO.IOException: "Win32 IO returned ERROR_SUCCESS"
+in <0x00152> System.IO.Directory:GetFileSystemEntries
+(string,string,System.IO.FileAttributes,System.IO.FileAt
+tributes)
+in <0x00038> .myclass:Main (string[])
+
+RESULT: -1
+
+I have also fixed this to return a DirectoryNotFoundException ().