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
This commit is contained in:
Vincent Petry 2013-11-29 16:28:42 +01:00
parent 1dc931b778
commit 80d2371f97
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}
}