Fix we need to keep temp dir

This commit is contained in:
Laurent Destailleur 2019-06-25 19:02:24 +02:00
parent 1277e36179
commit 4696d35bcb

View File

@ -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
}