[Mono-bugs] [Bug 44253][Nor] New - FileInfo.MoveTo does not refresh the FileInfo Properties

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 6 Jun 2003 14:45:03 -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 jluke@cfl.rr.com.

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

--- shadow/44253	Fri Jun  6 14:45:03 2003
+++ shadow/44253.tmp.32494	Fri Jun  6 14:45:03 2003
@@ -0,0 +1,56 @@
+Bug#: 44253
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jluke@cfl.rr.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FileInfo.MoveTo does not refresh the FileInfo Properties
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. create a file "test"
+2. compile and run
+
+using System;
+using System.IO;
+
+class FileInfoTest
+{
+	static void Main()
+	{
+		FileInfo f = new FileInfo ("test");
+		Console.WriteLine (f.Name);
+	
+		f.MoveTo ("test2");
+		Console.WriteLine (f.Name);
+	}	
+}
+
+Actual Results:
+test
+test
+
+Expected Results:
+test
+test2
+
+How often does this happen? 
+always on .24
+
+Additional Information:
+I ran it on MS.NET 1.0 to get expected results
+I do not have MS.NET 1.1 or cvs mcs/mono to try it on.