mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
make use of the fact that rmdir is already recursive
This commit is contained in:
parent
2d1c6ae726
commit
4e55d0ef9b
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Reference in a new issue