forked from TrueCloudLab/rclone
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:
parent
7dc7c021db
commit
dc286529bc
1 changed files with 1 additions and 1 deletions
|
@ -3069,7 +3069,7 @@ func (f *Fs) copyID(ctx context.Context, id, dest string) (err error) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if destLeaf == "" {
|
if destLeaf == "" {
|
||||||
destLeaf = info.Name
|
destLeaf = path.Base(o.Remote())
|
||||||
}
|
}
|
||||||
if destDir == "" {
|
if destDir == "" {
|
||||||
destDir = "."
|
destDir = "."
|
||||||
|
|
Loading…
Add table
Reference in a new issue