mirror of
https://github.com/rclone/rclone.git
synced 2025-12-12 06:24:14 +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:
committed by
Nick Craig-Wood
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 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
|
// PutStream uploads to the remote path with the modTime given of indeterminate
|
||||||
|
|||||||
Reference in New Issue
Block a user