make use of the fact that rmdir is already recursive
This commit is contained in:
parent
2d1c6ae726
commit
4e55d0ef9b
|
@ -222,7 +222,6 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
|
||||||
throw new \Sabre_DAV_Exception_Forbidden();
|
throw new \Sabre_DAV_Exception_Forbidden();
|
||||||
}
|
}
|
||||||
if ($this->path != "/Shared") {
|
if ($this->path != "/Shared") {
|
||||||
foreach($this->getChildren() as $child) $child->delete();
|
|
||||||
\OC\Files\Filesystem::rmdir($this->path);
|
\OC\Files\Filesystem::rmdir($this->path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue