mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 18:04:55 +01:00
storj: fix put
The "relative" argument was missing when Put'ing a file. This sets an incorrect object entry in the cache, leading to the file being unreadable when using mount functionality. Fixes #6151
This commit is contained in:
parent
319ac225e4
commit
9e4854955c
@ -579,7 +579,7 @@ func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options .
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return newObjectFromUplink(f, "", upload.Info()), nil
|
||||
return newObjectFromUplink(f, src.Remote(), upload.Info()), nil
|
||||
}
|
||||
|
||||
// PutStream uploads to the remote path with the modTime given of indeterminate
|
||||
|
Loading…
Reference in New Issue
Block a user