[Mono-bugs] [Bug 79887][Wis] New - DirectoryInfo doesn't honor symbolic links anymore

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Nov 10 02:23:36 EST 2006


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 jwiegley at gmail.com.

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

--- shadow/79887	2006-11-10 02:23:36.000000000 -0500
+++ shadow/79887.tmp.2127	2006-11-10 02:23:36.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 79887
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: Mono 1.2rc0 OS/X 10.4.8
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jwiegley at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DirectoryInfo doesn't honor symbolic links anymore
+
+This sample worked fine in 1.1.13.8, but fails in 1.2.  If you point it as a symbolic link -- which is 
+a link to a directory -- it will report the link itself as both of the two directory entries.  1.1.13.8 
+reports the contents of the linked to directory.
+
+using System;
+using System.IO;
+
+namespace Bug
+{
+	public class MyTest
+	{
+		public static void Main(string[] args)
+		{
+			DirectoryInfo info = new DirectoryInfo(args[0]);
+			foreach (FileSystemInfo entry in info.GetFileSystemInfos())
+				Console.WriteLine(entry.FullName);
+		}
+	}
+}


More information about the mono-bugs mailing list