Updated mkdir call to allow for creation of nested directories

This commit is contained in:
Duncan Sommerville 2014-09-17 12:16:35 -04:00
parent d6476fffcd
commit f724d86b6a
1 changed files with 1 additions and 1 deletions

View File

@ -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.");
}
}