[Mono-bugs] [Bug 58804][Wis] New - FileInfo.cs bug

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 May 2004 14:07:09 -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 grompf@sublimeintervention.com.

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

--- shadow/58804	2004-05-21 14:07:09.000000000 -0400
+++ shadow/58804.tmp.1903	2004-05-21 14:07:09.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 58804
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: grompf@sublimeintervention.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FileInfo.cs bug
+
+The ms spec states that FileInfo.ToString() should return the full path as seen:
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
+frlrfsystemiofileinfoclassappendtexttopic.asp
+
+Return Value
+
+
+A string representing the fully qualified path.
+
+Attached is a small unified diff to fix this problem:
+
+--- FileInfo.cs.orig    Fri May 21 13:38:52 2004
++++ FileInfo.cs Fri May 21 13:39:29 2004
+@@ -165,7 +165,7 @@
+                }
+ 
+                public override string ToString () {
+-                       return Name;
++                       return FullPath;
+                }
+        }
+ }