Community
Participate
Working Groups
build 20020510 Example workspace: Project - A - B - C.txt - X - A - Y - Z.txt In the navigator, if I move X/A to Project, a dialog shows up asking if I want to overwrite Project/A. If the answer is Yes, it deletes the Project/A and moves X/A to Project/A. Expected result was a merge having the following workspace as a result: Project - A - B - C.txt - Y - Z.txt This is the result provided by Windows Explorer. Windows explorer DOES ask the same question about overwriting the folder A but it does not delete the destination folder. It merges the final result. The current behaviour can lead to user data being lost.
This is a major problem since it risks losing the user's work. This has been reported before, and we should address it for 2.0 if at all possible.
We perform the copy folder as a single operation. We need to do one file at a time. See performCopyWithAutoRename.
Lynne, Nick asked if you could look at this for me. Thanks
Happens under both Move and Copy actions.
Explorer Win2K tells you that you are doing a folder replace and tells you that any files in the existing folder have the same names as files in the folder you are moving/copying, these files will be replaced, and gives you the options of yes, yes to all, no, cancel.
This is the behaviour we want. It should merge the folders rather than wiping out the dest first.
Knut to wrap up on Monday. Waiting on NE for okay on paste code. Made similar changes for MoveResourceAction.
Copied fix from CopyFilesAndFoldersOperation to CopyResourceAction. Should refactor at some point since the two are very similar. Cleaned up exception handling in all three actions/operations. copy/move no longer returns a return code but just lets CoreExceptions drop through to performCopy where they are logged and false is returned. As part of this the move operation no longer deletes the source folder if moving the contents failed. This could have led to data loss.
Opened bug 16500 for the refactoring.
*** Bug 9814 has been marked as a duplicate of this bug. ***