From b062593cb2122499c592789f1d53d7fe7ea3fb3e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 15 Oct 2019 13:48:22 -0600 Subject: [PATCH] Update functions.php --- resources/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index 5c2dc7fda2..28d98046e4 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -205,11 +205,11 @@ } if (!function_exists('recursive_delete')) { - if (file_exists('/bin/rm')) { + if (file_exists('/usr/bin/find')) { function recursive_delete($directory) { if (isset($directory) && strlen($directory) > 8) { - exec ('find '.$directory.' -name "*" | xargs rm -Rf'); - //exec ('rm -Rf '.$directory.'/*'); + exec('/usr/bin/find '.$directory.' -name "*" -delete'); + //exec('rm -Rf '.$directory.'/*'); clearstatcache(); } }