Fix swift touch operation
The touch() operation now uses "UpdateMetadata()" instead of "Update()" which doesn't clear the object's contents. This fixes syncing, as the sync client needs to use touch to update the object's mtime.
This commit is contained in:
parent
1469ce7b38
commit
2a08e35d72
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ class Swift extends \OC\Files\Storage\Common {
|
|||
'X-Object-Meta-Timestamp' => $mtime
|
||||
)
|
||||
);
|
||||
return $object->Update($settings);
|
||||
return $object->UpdateMetadata($settings);
|
||||
} else {
|
||||
$object = $this->container->DataObject();
|
||||
if (is_null($mtime)) {
|
||||
|
|
Loading…
Reference in a new issue