mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Make the recursive delete more robust
This commit is contained in:
parent
71e1d919de
commit
be8326668a
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ class OC_Helper {
|
|||
if (is_dir($dir)) {
|
||||
$files = scandir($dir);
|
||||
foreach ($files as $file) {
|
||||
if ($file != "." && $file != "..") {
|
||||
if ($file !== '' && $file !== "." && $file !== "..") {
|
||||
self::rmdirr("$dir/$file");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue