File classes/Utils.php changed (mode: 100644) (index 624b77c..b6de919) |
... |
... |
class Utils |
29 |
29 |
{ |
{ |
30 |
30 |
$files = array_diff(scandir($dir), ['.', '..']); |
$files = array_diff(scandir($dir), ['.', '..']); |
31 |
31 |
foreach ($files as $file) { |
foreach ($files as $file) { |
32 |
|
if (is_dir("$dir/$file")) { |
|
33 |
|
Utils::delTree("$dir/$file"); |
|
|
32 |
|
$path = "$dir/$file"; |
|
33 |
|
if (is_dir($path) && !is_link($path)) { |
|
34 |
|
Utils::delTree($path); |
34 |
35 |
} else { |
} else { |
35 |
|
unlink("$dir/$file"); |
|
|
36 |
|
unlink($path); |
36 |
37 |
} |
} |
37 |
38 |
} |
} |
38 |
39 |
return rmdir($dir); |
return rmdir($dir); |