Bug 38796

Summary: FileInfo.ToString misbehaving after MoveTo
Product: [Mono] Class Libraries Reporter: marcos.henrich
Component: mscorlibAssignee: marcos.henrich
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: 4.2.0 (C6)   
Target Milestone: Untriaged   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description marcos.henrich 2016-02-16 13:58:01 UTC
With .NET when I run:
  var f = new FileInfo(@"C:\tmp\a");
  f.MoveTo ("c");
  Console.WriteLine (f.ToString());
The output is "c"

While when I run:
  var f = new FileInfo(@"/tmp/a");
  f.MoveTo ("c");
  Console.WriteLine (f.ToString());
The output is "/tmp/a"

This issue was discussed in https://github.com/mono/mono/pull/2623
Comment 1 marcos.henrich 2016-03-16 10:13:23 UTC
Should be fixed by https://github.com/mono/mono/pull/2764
Comment 2 marcos.henrich 2016-03-22 15:06:08 UTC
Fixed in master e1403cc11ae3ac5016aa098bdfdca301dcc86296.

The fix will be in cycle 8, mono 4.6.