Update functions.php
This commit is contained in:
parent
beafec16dd
commit
7113d5203a
|
|
@ -205,11 +205,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!function_exists('recursive_delete')) {
|
if (!function_exists('recursive_delete')) {
|
||||||
if (file_exists('/bin/rm')) {
|
if (file_exists('/usr/bin/find')) {
|
||||||
function recursive_delete($directory) {
|
function recursive_delete($directory) {
|
||||||
if (isset($directory) && strlen($directory) > 8) {
|
if (isset($directory) && strlen($directory) > 8) {
|
||||||
exec ('find '.$directory.' -name "*" | xargs rm -Rf');
|
exec('/usr/bin/find '.$directory.' -name "*" -delete');
|
||||||
//exec ('rm -Rf '.$directory.'/*');
|
//exec('rm -Rf '.$directory.'/*');
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue