[Mono-bugs] [Bug 56576][Min] New - Directory.GetFileSystemEntries leaves out broken symlinks

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 6 Apr 2004 18:15:33 -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 fury@calyptos.com.

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

--- shadow/56576	2004-04-06 18:15:33.000000000 -0400
+++ shadow/56576.tmp.19869	2004-04-06 18:15:33.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 56576
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: fury@calyptos.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Directory.GetFileSystemEntries leaves out broken symlinks
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing. 
+Description of Problem: 
+Calls to Directory.GetFileSystemEntries() leaves out broken symbolic links 
+ 
+Steps to reproduce the problem: 
+Run this on a directory with a broken symlink: 
+using System; 
+using System.IO; 
+ 
+public class BrokenSymLinks { 
+	static public void Main(string[] args) 
+	{ 
+		foreach (string file in Directory.GetFileSystemEntries
+(args[0])) { 
+			Console.WriteLine(file); 
+		} 
+	} 
+} 
+ 
+Actual Results: 
+Doesn't list the broken symlink(s) 
+ 
+Expected Results: 
+Should list the broken symlinks :) 
+ 
+How often does this happen?  
+Always. :) 
+ 
+Additional Information: 
+I could see why Directory.{GetFiles|GetDirectories} would not include 
+broken symlinks, but certainly not GetFileSystemEntries.