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.
This commit is contained in:
Nick Craig-Wood 2021-04-03 13:47:41 +01:00
parent 501475a3a3
commit 5603983a5d

View File

@ -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 = "."