1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 10:33:34 +00:00

swift, s3, dropbox: fix metadata read on Update()

This was causing changed files to be marked as corrupted on upload
This commit is contained in:
Nick Craig-Wood
2014-07-20 11:23:05 +01:00
parent 2479ce2c8e
commit 282cba20a0
4 changed files with 20 additions and 1 deletions

View File

@@ -518,6 +518,7 @@ func (o *FsObjectS3) Update(in io.Reader, modTime time.Time, size int64) error {
return err
}
// Read the metadata from the newly created object
o.meta = nil // wipe old metadata
err = o.readMetaData()
return err
}