summaryrefslogtreecommitdiffstats
path: root/lib/connector/sabre/directory.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-06-30 18:11:22 +0200
committerRobin Appelman <icewind@owncloud.com>2013-06-30 18:37:47 +0200
commit4e55d0ef9be67efaacefbba720ef1dbce67d6ede (patch)
treede0fdbe2e9406bb4b3d7735e558c37236e90f2b9 /lib/connector/sabre/directory.php
parent2d1c6ae726caca3cb9574d7fd6a9e495d218ec83 (diff)
downloadnextcloud-server-4e55d0ef9be67efaacefbba720ef1dbce67d6ede.tar.gz
nextcloud-server-4e55d0ef9be67efaacefbba720ef1dbce67d6ede.zip
make use of the fact that rmdir is already recursive
Diffstat (limited to 'lib/connector/sabre/directory.php')
-rw-r--r--lib/connector/sabre/directory.php1
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);
}