diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-06-30 18:11:22 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-30 18:37:47 +0200 |
commit | 4e55d0ef9be67efaacefbba720ef1dbce67d6ede (patch) | |
tree | de0fdbe2e9406bb4b3d7735e558c37236e90f2b9 | |
parent | 2d1c6ae726caca3cb9574d7fd6a9e495d218ec83 (diff) | |
download | nextcloud-server-4e55d0ef9be67efaacefbba720ef1dbce67d6ede.tar.gz nextcloud-server-4e55d0ef9be67efaacefbba720ef1dbce67d6ede.zip |
make use of the fact that rmdir is already recursive
-rw-r--r-- | lib/connector/sabre/directory.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php index 3d15a2a584d..ed8d085462d 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); } |