summaryrefslogtreecommitdiffstats
path: root/lib/connector
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-02-10 11:05:43 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-02-11 09:32:28 +0100
commitd2332f60f31600641189f03bdecaa82a0f889da5 (patch)
tree96b7c7762ebabc3eed61321cbc050a182bca6d13 /lib/connector
parent04146f2059e2d038177db544ea9f37a124f0781e (diff)
downloadnextcloud-server-d2332f60f31600641189f03bdecaa82a0f889da5.tar.gz
nextcloud-server-d2332f60f31600641189f03bdecaa82a0f889da5.zip
add a custom header clients can use to skip a n additional propset request
Diffstat (limited to 'lib/connector')
-rw-r--r--lib/connector/sabre/file.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/connector/sabre/file.php b/lib/connector/sabre/file.php
index 521c5f0571d..63c581f30c9 100644
--- a/lib/connector/sabre/file.php
+++ b/lib/connector/sabre/file.php
@@ -52,6 +52,12 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
// rename to correct path
\OC\Files\Filesystem::rename($partpath, $this->path);
+
+ //allow sync clients to send the mtime along in a header
+ $mtime = OC_Request::hasModificationTime();
+ if ($mtime !== false) {
+ \OC\Files\Filesystem::touch($this->path,$mtime);
+ }
return OC_Connector_Sabre_Node::getETagPropertyForPath($this->path);
}