summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-27 12:34:30 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-27 12:34:30 +0100
commit2a08e35d72ef8d65960c0d3db4d233276c77eda7 (patch)
treeefe9f472824bbec6ba2754dd84947444104a31e9 /apps/files_external
parent1469ce7b38fbd55a64fad05e95ca124ababdf3df (diff)
downloadnextcloud-server-2a08e35d72ef8d65960c0d3db4d233276c77eda7.tar.gz
nextcloud-server-2a08e35d72ef8d65960c0d3db4d233276c77eda7.zip
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.
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/swift.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index a6955d400f4..1337d9f581d 100644
--- a/apps/files_external/lib/swift.php
+++ b/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)) {