[Mono-bugs] [Bug 56424][Nor] New - Directories including square brackets not handled properly by DirectoryInfo
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 3 Apr 2004 05:01:31 -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 jorn@nl.linux.org.
http://bugzilla.ximian.com/show_bug.cgi?id=56424
--- shadow/56424 2004-04-03 05:01:31.000000000 -0500
+++ shadow/56424.tmp.16018 2004-04-03 05:01:31.000000000 -0500
@@ -0,0 +1,26 @@
+Bug#: 56424
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jorn@nl.linux.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Directories including square brackets not handled properly by DirectoryInfo
+
+DirectoryInfo dinfo = new DirectoryInfo (dirname);
+if (dinfo.Exists)
+ Console.WriteLine ("exists");
+foreach (FileInfo finfo in dinfo.GetFiles ())
+ Console.WriteLine ("dealing with " + finfo.FullPath);
+
+Running this test code on a dir containing square brackets results in it
+printing "exists", but not any of the files contained in the dir.