fix: create temp folder if it doesn't exist in EventsController::export()

pull/3608/head
Xavier Mehrenberger 2018-09-03 18:06:23 +02:00
parent 141c7d451f
commit 65f0b2bb6f
1 changed files with 1 additions and 1 deletions

View File

@ -2335,7 +2335,7 @@ class EventsController extends AppController
),
'order' => array('Job.id' => 'desc')
));
$dir = new Folder(APP . 'tmp/cached_exports/' . $k);
$dir = new Folder(APP . 'tmp/cached_exports/' . $k, true);
if ($k === 'text') {
// Since all of the text export files are generated together, we might as well just check for a single one md5.
$file = new File($dir->pwd() . DS . 'misp.text_md5.' . $org_name . $type['extension']);