From 3ae8eb9105618155ee0b714337af7c65126d93c5 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 13 Apr 2012 15:09:59 -0400 Subject: [PATCH] CC-3622: When changing location of the stor directory, the "organize" subfolder is not being created - fixed --- airtime_mvc/application/models/StoredFile.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index e606dd8dc..770fecaf8 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -836,7 +836,10 @@ Logging::log("getting media! - 2"); $stor = $storDir->getDirectory(); // check if "organize" dir exists and if not create one if(!file_exists($stor."/organize")){ - mkdir($stor."/organize", 0777); + if(!mkdir($stor."/organize", 0777)){ + $result = array("code" => 109, "message" => "Failed to create 'organize' directory."); + return $result; + } } //check to see if there is enough space in $stor to continue. $enough_space = Application_Model_StoredFile::checkForEnoughDiskSpaceToCopy($stor, $audio_file);