mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #8687 from owncloud/recursive-remove-smb
Make the recursive delete more robust
This commit is contained in:
commit
a34491e288
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