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.
remotes/origin/ldap_group_count
Vincent Petry 13 years ago
parent 1469ce7b38
commit 2a08e35d72
  1. 2
      apps/files_external/lib/swift.php

@ -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…
Cancel
Save