Fix move command - stop it running for overlapping fses - fixes #577
* Make move command check for overlapping remotes and refuse to run * Do copy/delete rather than all the copies then all the deletes * Doesn't purge the source - this was unexpected behaviour see #512 and #416 * Add -list-retries flag to test suite to control retries This changes the semantics of `move` slightly. However it now errs on the side of not deleting stuff.
This commit is contained in:
@@ -395,7 +395,7 @@ func TestFsDirMove(t *testing.T) {
|
||||
require.Equal(t, fs.ErrorDirExists, err)
|
||||
|
||||
// new remote
|
||||
newRemote, removeNewRemote, err := fstest.RandomRemote(RemoteName, false)
|
||||
newRemote, _, removeNewRemote, err := fstest.RandomRemote(RemoteName, false)
|
||||
require.NoError(t, err)
|
||||
defer removeNewRemote()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user