From 80d2371f971a9c35bee5bebb272d73ad0fb7fc83 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 29 Nov 2013 16:28:42 +0100 Subject: [PATCH] Fixed touch after chunk assembling Fixed touch after chunk assembling which was using the wrong path, resulting in the creation of an extra file. Fixes #6007 --- lib/private/connector/sabre/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php index 26b5d200bd..295575f0af 100644 --- a/lib/private/connector/sabre/file.php +++ b/lib/private/connector/sabre/file.php @@ -249,7 +249,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D // allow sync clients to send the mtime along in a header $mtime = OC_Request::hasModificationTime(); if ($mtime !== false) { - if($fs->touch($this->path, $mtime)) { + if($fs->touch($targetPath, $mtime)) { header('X-OC-MTime: accepted'); } }