From 4e55d0ef9be67efaacefbba720ef1dbce67d6ede Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 30 Jun 2013 18:11:22 +0200 Subject: [PATCH] make use of the fact that rmdir is already recursive --- lib/connector/sabre/directory.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php index 3d15a2a584..ed8d085462 100644 --- a/lib/connector/sabre/directory.php +++ b/lib/connector/sabre/directory.php @@ -222,7 +222,6 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa throw new \Sabre_DAV_Exception_Forbidden(); } if ($this->path != "/Shared") { - foreach($this->getChildren() as $child) $child->delete(); \OC\Files\Filesystem::rmdir($this->path); }