[Mono-bugs] [Bug 59087][Nor] New - DirectoryInfo.GetFiles on empty directories (windows)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 26 May 2004 00:59: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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59087
--- shadow/59087 2004-05-26 00:59:21.000000000 -0400
+++ shadow/59087.tmp.5392 2004-05-26 00:59:21.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 59087
+Product: Mono: Runtime
+Version: unspecified
+OS: Windows XP
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DirectoryInfo.GetFiles on empty directories (windows)
+
+Compile this:
+---
+using System;
+using System.IO;
+
+public class Test
+{
+ public static void Main(string[] args)
+ {
+ DirectoryInfo di = new DirectoryInfo ("bar");
+ foreach (FileInfo fi in di.GetFiles ("*.*"))
+ Console.WriteLine (fi.ToString ());
+ }
+}
+---
+Create directory "bar" and run the program.
+
+Actual results:
+bar
+
+Expected results:
+(nothing)