From f724d86b6a713bc4455cd9e1c21c3ed798dfee22 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Wed, 17 Sep 2014 12:16:35 -0400 Subject: [PATCH] Updated mkdir call to allow for creation of nested directories --- .../application/modules/rest/controllers/ShowController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/modules/rest/controllers/ShowController.php b/airtime_mvc/application/modules/rest/controllers/ShowController.php index e79c81b65..537ff49c7 100644 --- a/airtime_mvc/application/modules/rest/controllers/ShowController.php +++ b/airtime_mvc/application/modules/rest/controllers/ShowController.php @@ -149,7 +149,7 @@ class Rest_ShowController extends Zend_Rest_Controller // check if "organize" dir exists and if not create one if (!file_exists($importedStorageDirectory)) { - if (!mkdir($importedStorageDirectory, 0777)) { + if (!mkdir($importedStorageDirectory, 0777, true)) { throw new Exception("Failed to create storage directory."); } }