mirror of
https://github.com/rclone/rclone
synced 2024-11-08 05:31:41 +01:00
drive: fix copyid command with a bare filename: can't use empty string as a path
Before this change, running rclone backend copyid drive: ID file.txt Failed with the error command "copyid" failed: failed copying "ID" "file.txt": can't use empty string as a path This fixes the problem.
This commit is contained in:
parent
3b1122c888
commit
f66928a846
@ -3064,6 +3064,9 @@ func (f *Fs) copyID(ctx context.Context, id, dest string) (err error) {
|
||||
if destLeaf == "" {
|
||||
destLeaf = info.Name
|
||||
}
|
||||
if destDir == "" {
|
||||
destDir = "."
|
||||
}
|
||||
dstFs, err := cache.Get(ctx, destDir)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user