From: vincent@cubedesigners.com Date: Thu, 27 Jun 2019 12:39:35 +0000 (+0000) Subject: wip #2667 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1a1c873291a457157df52970eae053cc9454ab7d;p=cubeextranet.git wip #2667 @1 --- diff --git a/inc/commons/DAO/class.common.dao.fichier.php b/inc/commons/DAO/class.common.dao.fichier.php index be9cc7313..24cba5aab 100644 --- a/inc/commons/DAO/class.common.dao.fichier.php +++ b/inc/commons/DAO/class.common.dao.fichier.php @@ -129,7 +129,7 @@ class commonDAOFichier extends commonDAO public function deleteOldFiles() { - cubeFiles::deleteFilesOlderThan(FTPROOT, 60, array('*.ipa', '*.apk')); + cubeFiles::deleteFilesOlderThan(FTPROOT, 60, array('(.*)\.ipa', '(.*)\.apk')); } } \ No newline at end of file diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index e88a8bc06..a7b024bcf 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -1063,9 +1063,6 @@ class wsMaintenance $dao = new commonDAOFichier($core->con); $dao->deleteOldFiles(); - - cubeFiles::deleteFilesOlderThan('/home/ws/ftp', 60, array('*.ipa', '*.apk')); - cubeFiles::deleteFilesOlderThan('/home/ws/www/getpdf', 60); } public static function reencodeVideos($args)