mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
s3: Read metadata after Update or Put
This commit is contained in:
parent
5a8bce6353
commit
1c472348b6
5
s3/s3.go
5
s3/s3.go
@ -514,6 +514,11 @@ func (o *FsObjectS3) Update(in io.Reader, modTime time.Time, size int64) error {
|
||||
}
|
||||
|
||||
_, err := o.s3.b.PutReaderHeaders(o.s3.root+o.remote, in, size, contentType, o.s3.perm, headers)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Read the metadata from the newly created object
|
||||
err = o.readMetaData()
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user