[Mono-bugs] [Bug 50768][Wis] Changed - new DirectoryInfo (".").GetFiles ("*.plugin") throws DirectoryNotFoundException

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 10 Nov 2003 08:21:46 -0500 (EST)


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=50768

--- shadow/50768	2003-11-10 08:18:06.000000000 -0500
+++ shadow/50768.tmp.2002	2003-11-10 08:21:46.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 50768
 Product: Mono/Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: YDL 3.0 + jhbuild
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: System
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: Jeroen@xs4all.nl               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -32,6 +32,24 @@
 ([O:0x1014fd20] [O:0x101419e0] [16] [0] )
 #1: 0x00005 call       in System.IO.Directory::GetFiles ([O:0x1014fd20]
 [O:0x101419e0] )
 #2: 0x00007 call       in System.IO.DirectoryInfo::GetFiles ([O:0x101419e0] 
 
 Looks like a bug (notice the weird path).
+
+------- Additional Comments From gonzalo@ximian.com  2003-11-10 08:21 -------
+using System;
+using System.IO;
+ 
+class T
+{
+        static void Main ()
+        {
+                DirectoryInfo di = new DirectoryInfo (".");
+                FileInfo[] files = di.GetFiles ("*.plugin");
+ 
+                foreach (FileInfo file in files) {
+                        Console.WriteLine ("Found {0}", file.Name);
+                }
+        }
+}
+