onedrive, drive, amazonclouddrive: make sure we find the root

This fixes copyto copying things to the wrong place - fixes #1231
This commit is contained in:
Nick Craig-Wood
2017-03-16 09:42:49 +00:00
parent 986a2851bf
commit 9b07d32c02
5 changed files with 16 additions and 29 deletions
-2
View File
@@ -770,7 +770,6 @@ func TestMoveFile(t *testing.T) {
r := NewRun(t)
defer r.Finalise()
r.Mkdir(r.fremote)
file1 := r.WriteFile("file1", "file1 contents", t1)
fstest.CheckItems(t, r.flocal, file1)
@@ -801,7 +800,6 @@ func TestCopyFile(t *testing.T) {
file2 := file1
file2.Path = "sub/file2"
r.Mkdir(r.fremote)
err := fs.CopyFile(r.fremote, r.flocal, file2.Path, file1.Path)
require.NoError(t, err)
fstest.CheckItems(t, r.flocal, file1)