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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 10 Nov 2003 08:18:06 -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 jeroen@xs4all.nl.

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

--- shadow/50768	2003-11-10 08:18:06.000000000 -0500
+++ shadow/50768.tmp.1978	2003-11-10 08:18:06.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 50768
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: YDL 3.0 + jhbuild
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: Jeroen@xs4all.nl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: new DirectoryInfo (".").GetFiles ("*.plugin") throws DirectoryNotFoundException
+
+DirectoryInfo di = new DirectoryInfo (".");
+FileInfo[] files = di.GetFiles ("*.plugin");
+			
+foreach (FileInfo file in files) {
+	Console.WriteLine ("Found {0}", file.Name);
+}
+
+The above code when executed with mint on YellowDogLinux 3.0 (linux/ppc)
+throws this exception:
+
+Unhandled Exception: System.IO.DirectoryNotFoundException: Directory
+'????????????????????????????' not found.
+#0: 0x00069 throw      in System.IO.Directory::GetFileSystemEntries
+([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).