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:
Erik van Velzen 2022-05-06 03:51:48 +02:00 committed by Nick Craig-Wood
parent 319ac225e4
commit 9e4854955c

View File

@ -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