Merge pull request #8687 from owncloud/recursive-remove-smb

Make the recursive delete more robust
remotes/origin/ldap_group_count
Vincent Petry 11 years ago
commit a34491e288
  1. 2
      lib/private/helper.php

@ -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…
Cancel
Save