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

ubfolder is not being created.

- I confirmed that Airtime was creating organize folder upon chaning stor dir
but, still added a code which make sure it create organize folder if it's
missing somehow.
This commit is contained in:
James 2012-04-12 12:22:20 -04:00
parent 18391604b5
commit c90a8006cc
1 changed files with 4 additions and 1 deletions

View File

@ -809,7 +809,10 @@ Logging::log("getting media! - 2");
if (!isset($result)){//The file has no duplicate, so proceed to copy.
$storDir = Application_Model_MusicDir::getStorDir();
$stor = $storDir->getDirectory();
// check if "organize" dir exists and if not create one
if(!file_exists($stor."/organize")){
mkdir($stor."/organize", 0777);
}
//check to see if there is enough space in $stor to continue.
$enough_space = Application_Model_StoredFile::checkForEnoughDiskSpaceToCopy($stor, $audio_file);
if ($enough_space){