From 4696d35bcbc5db53a46fd66a03bb4d8ecd08ab7b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 25 Jun 2019 19:02:24 +0200 Subject: [PATCH] Fix we need to keep temp dir --- htdocs/core/class/utils.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/core/class/utils.class.php b/htdocs/core/class/utils.class.php index 3d43a319e51..8f2b1ef303e 100644 --- a/htdocs/core/class/utils.class.php +++ b/htdocs/core/class/utils.class.php @@ -165,6 +165,12 @@ class Utils } else $this->output=$langs->trans("PurgeNothingToDelete").($choice == 'tempfilesold' ? ' (older than 24h)':''); + // Recreate temp dir that are not automatically recreated for performance purpose + if (! empty($conf->api->enabled)) + { + dol_mkdir($conf->api->dir_temp); + } + //return $count; return 0; // This function can be called by cron so must return 0 if OK }