make use of the fact that rmdir is already recursive

remotes/origin/stable6
Robin Appelman 12 years ago
parent 2d1c6ae726
commit 4e55d0ef9b
  1. 1
      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);
}

Loading…
Cancel
Save