Make path for dummy fileinfo absolute

This commit is contained in:
Robin Appelman 2014-03-03 13:57:08 +01:00
parent 9231195c98
commit fe994669cd
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
}
}
$path = $this->path . '/' . $name;
$path = $this->fileView->getAbsolutePath($this->path) . '/' . $name;
// using a dummy FileInfo is acceptable here since it will be refreshed after the put is complete
$info = new \OC\Files\FileInfo($path, null, null, array());
$node = new OC_Connector_Sabre_File($this->fileView, $info);