CC-2651: Prevent chaning the storage dir while import is happening

- done
This commit is contained in:
James 2011-08-08 17:07:52 -04:00
parent bfa2fa6535
commit 05b2a9679b
3 changed files with 5 additions and 3 deletions

View file

@ -244,6 +244,8 @@ class MusicDir {
{
if(!is_dir($p_dir)){
return array("code"=>2, "error"=>"'$p_dir' is not a valid directory.");
}else if(Application_Model_Preference::GetImportTimestamp()+10 > $now){
return array("code"=>3, "error"=>"Airtime is currently importing files. Please wait until this is complete before changing the storage directory.");
}
$dir = self::getStorDir();
// if $p_dir doesn't exist in DB