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:
Vincent Petry 2014-03-27 12:34:30 +01:00
parent 1469ce7b38
commit 2a08e35d72

View file

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