CC-3622: When changing location of the stor directory, the "organize"
subfolder is not being created - fixed
This commit is contained in:
parent
36ca2c29fc
commit
3ae8eb9105
1 changed files with 4 additions and 1 deletions
|
@ -836,7 +836,10 @@ Logging::log("getting media! - 2");
|
||||||
$stor = $storDir->getDirectory();
|
$stor = $storDir->getDirectory();
|
||||||
// check if "organize" dir exists and if not create one
|
// check if "organize" dir exists and if not create one
|
||||||
if(!file_exists($stor."/organize")){
|
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.
|
//check to see if there is enough space in $stor to continue.
|
||||||
$enough_space = Application_Model_StoredFile::checkForEnoughDiskSpaceToCopy($stor, $audio_file);
|
$enough_space = Application_Model_StoredFile::checkForEnoughDiskSpaceToCopy($stor, $audio_file);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue