From dc286529bcbed61abc88fd0d760b8d2af6cc2095 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 3 Apr 2021 13:47:41 +0100 Subject: [PATCH] drive: fix backend copyid of google doc to directory - fixes #5196 Before this change the google doc was being copied to the directory without an extension. --- backend/drive/drive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/drive/drive.go b/backend/drive/drive.go index 32ccd9215..e634f1954 100755 --- a/backend/drive/drive.go +++ b/backend/drive/drive.go @@ -3069,7 +3069,7 @@ func (f *Fs) copyID(ctx context.Context, id, dest string) (err error) { return err } if destLeaf == "" { - destLeaf = info.Name + destLeaf = path.Base(o.Remote()) } if destDir == "" { destDir = "."