make use of the fact that rmdir is already recursive

This commit is contained in:
Robin Appelman 2013-06-30 18:11:22 +02:00
parent 2d1c6ae726
commit 4e55d0ef9b
1 changed files with 0 additions and 1 deletions

View File

@ -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);
}