From 27efdbd58f284c054ae9150ff2a2b0dcb5fab70f Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 15 Jun 2012 17:04:37 +0200 Subject: Use setter for FileinfoCache --- lib/connector/sabre/directory.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/connector/sabre/directory.php') diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php index 5aa70392d76..6af4dd36562 100644 --- a/lib/connector/sabre/directory.php +++ b/lib/connector/sabre/directory.php @@ -69,15 +69,13 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa if (!$info) throw new Sabre_DAV_Exception_NotFound('File with name ' . $path . ' could not be located'); if ($info['mimetype'] == 'httpd/unix-directory') { - - return new OC_Connector_Sabre_Directory($path, $info); - + $node = new OC_Connector_Sabre_Directory($path); } else { - - return new OC_Connector_Sabre_File($path, $info); - + $node = new OC_Connector_Sabre_File($path); } + $node->setFileinfoCache($info); + return $node; } /** -- cgit v1.2.3