[Mono-bugs] [Bug 43229][Nor] New - Directory.GetDirectories does not return dirs starting with '.' char

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 18 May 2003 06:00:46 -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 vi64pa@kolumbus.fi.

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

--- shadow/43229	Sun May 18 06:00:46 2003
+++ shadow/43229.tmp.5660	Sun May 18 06:00:46 2003
@@ -0,0 +1,92 @@
+Bug#: 43229
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vi64pa@kolumbus.fi               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Directory.GetDirectories does not return dirs starting with '.' char
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Directory.GetDirectories (string) does not find files starting with '.' char.
+
+
+Steps to reproduce the problem:
+
+compile and run following code:
+
+
+using System;
+
+using System.IO;
+
+
+
+namespace testdata
+
+{
+
+        public class TestData11
+
+	{
+
+
+
+	        public TestData11 ()
+
+	        {}
+
+
+
+		public static void Main () 
+
+	       	{
+
+			string path = Path.GetTempPath ();
+
+			path += "/.testdata";
+
+			Directory.CreateDirectory (path);
+
+			
+
+			foreach (string str in Directory.GetDirectories (Path.GetTempPath ()))
+
+				Console.WriteLine (str);
+
+		}
+
+	}
+
+}
+
+
+Actual Results:
+
+does not print .testdata directory
+
+Expected Results:
+
+should print .testdata directory
+
+How often does this happen? 
+
+allways
+
+Additional Information:
+
+Bug is in io-layer/io.c FindFirstFile function. It uses glob () function
+which does not return directories starting with '.' char. Maybe GLOB_APPEND
+flag helps???