Bug 7653 - System.IO.DirectoryInfo.MoveTo doesn't update the current directory refered to by the DirectoryInfo instance.
Summary: System.IO.DirectoryInfo.MoveTo doesn't update the current directory refered t...
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-10-04 17:15 UTC by Tom Hindle
Modified: 2013-01-11 16:23 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test case reproducing problem. (608 bytes, text/x-csharp)
2012-10-04 17:15 UTC, Tom Hindle
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Tom Hindle 2012-10-04 17:15:40 UTC
Created attachment 2688 [details]
Test case reproducing problem.

IE: the following should be true:
new DirectoryInfo("OriginalPath").MoveTo("SomePath2").FullName == "SomePath2"

On mono FullName still returns OriginalPath.

See attached test case.

MoveTo Method should prolly set FullPath to destDirName on a succesfull move.
Comment 1 Rodrigo Kumpera 2013-01-11 16:23:55 UTC
Fixed on master.