CC-4034: Files on Watched folder shouldn't be deleted physically.

- fixed
This commit is contained in:
James 2012-06-28 13:28:45 -04:00
parent ffe3bdab0c
commit d13ade977a
1 changed files with 4 additions and 1 deletions

View File

@ -327,7 +327,10 @@ class Application_Model_StoredFile {
throw new DeleteScheduledFileException();
}
if (file_exists($filepath)) {
$music_dir = Application_Model_MusicDir::getDirByPK($this->_file->getDbDirectory());
$type = $music_dir->getType();
if (file_exists($filepath) && $type == "stor") {
$data = array("filepath" => $filepath, "delete" => 1);
Application_Model_RabbitMq::SendMessageToMediaMonitor("file_delete", $data);
}