Fix and document the move command - fixes #334

* Don't attempt to use server side Move unless they are on the same Fs
  * Fix move in the presense of filters
This commit is contained in:
Nick Craig-Wood
2016-02-25 20:05:34 +00:00
parent ccb59480bd
commit d2219a800a
3 changed files with 48 additions and 13 deletions
+2
View File
@@ -712,6 +712,7 @@ func TestServerSideMove(t *testing.T) {
fstest.CheckItems(t, fremoteMove, file2)
// Do server side move
fs.Stats.ResetCounters()
err = fs.MoveDir(fremoteMove, r.fremote)
if err != nil {
t.Fatalf("Server Side Move failed: %v", err)
@@ -721,6 +722,7 @@ func TestServerSideMove(t *testing.T) {
fstest.CheckItems(t, fremoteMove, file2, file1)
// Move it back again, dst does not exist this time
fs.Stats.ResetCounters()
err = fs.MoveDir(r.fremote, fremoteMove)
if err != nil {
t.Fatalf("Server Side Move 2 failed: %v", err)