Bug 5380 - "overwrite" option fails when moving files
Summary: "overwrite" option fails when moving files
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-05-28 22:24 UTC by Mikayla Hutchinson [MSFT]
Modified: 2015-08-20 13:55 UTC (History)
3 users (show)

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

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 Developer Community or GitHub 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 Mikayla Hutchinson [MSFT] 2012-05-28 22:24:00 UTC
When moving files with drag-n-drop, if a file of the same name already exists in the target location, then MD asks whether the user wants to overwrite it. However, if the user chooses to overwrite, it fails with the following exception:

ERROR [2012-05-28 22:20:49Z]: System.IO.IOException: Win32 IO returned ERROR_ALREADY_EXISTS. Path: 
  at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00141] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.IO/File.cs:317 
  at MonoDevelop.Core.FileSystem.DefaultFileSystemExtension.MoveFile (FilePath source, FilePath dest) [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.FileSystem/DefaultFileSystemExtension.cs:55 
  at MonoDevelop.Core.FileService.InternalMoveFile (System.String srcFile, System.String dstFile) [0x00017] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs:176 
  at MonoDevelop.Core.FileService.MoveFile (System.String srcFile, System.String dstFile) [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs:162 
  at MonoDevelop.Ide.ProjectOperations.TransferFiles (IProgressMonitor monitor, MonoDevelop.Projects.Project sourceProject, FilePath sourcePath, MonoDevelop.Projects.Project targetProject, FilePath targetPath, Boolean removeFromSource, Boolean copyOnlyProjectFiles) [0x00514] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:1675
Comment 1 Paul Ryland 2013-02-17 18:09:14 UTC
This bug may also be the cause of 'https://bugzilla.xamarin.com/show_bug.cgi?id=10357'
Comment 2 Lluis Sanchez 2015-08-20 13:55:16 UTC
Already fixed.