CC-3622: When changing location of the stor directory, the "organize"

subfolder is not being created

- fixed
This commit is contained in:
James 2012-04-13 15:09:59 -04:00
parent 36ca2c29fc
commit 3ae8eb9105
1 changed files with 4 additions and 1 deletions

View File

@ -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);