[Mono-bugs] [Bug 65727][Nor] Changed - DirectoryInfo.GetFiles() doesn't correctly return a funky filename

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 13 Sep 2004 13:04: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 joeshaw@novell.com.

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

--- shadow/65727	2004-09-13 09:37:52.000000000 -0400
+++ shadow/65727.tmp.2599	2004-09-13 13:04:21.000000000 -0400
@@ -79,6 +79,23 @@
 
 
 (note the carriage return on the top line)
 
 
 
+
+------- Additional Comments From joeshaw@novell.com  2004-09-13 13:04 -------
+Here's a test case.  Looks like it has something to do with the
+file.Name property?
+
+using System;
+using System.IO;
+
+public class foo {
+        public static void Main() {
+		DirectoryInfo di = new DirectoryInfo ("/home/joe/cvs/art/printwork");
+		foreach (FileInfo file in di.GetFiles()) {
+                        Console.WriteLine("Found [{0}]", file.Name);
+                }
+        }
+}
+