box: fix Update to send the correct name #97

This caused problems with the UTF Normalization with files being
continuously re-uploaded.
This commit is contained in:
Nick Craig-Wood 2017-09-14 17:21:11 +01:00
parent e0eabc75c0
commit 38cc211762

View File

@ -1032,7 +1032,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOptio
size := src.Size()
modTime := src.ModTime()
remote := src.Remote()
remote := o.Remote()
// Create the directory for the object if it doesn't exist
leaf, directoryID, err := o.fs.dirCache.FindRootAndPath(remote, true)