cc-2882: Airtime cannot delete watched folder when is been renamed
- initial commit Conflicts: airtime_mvc/application/models/MusicDir.php
This commit is contained in:
parent
6a0a739cef
commit
46146d1216
7 changed files with 104 additions and 5 deletions
|
@ -518,6 +518,14 @@ class ApiController extends Zend_Controller_Action
|
|||
$file->delete();
|
||||
}
|
||||
}
|
||||
else if ($mode == "delete_dir") {
|
||||
$filepath = $md['MDATA_KEY_FILEPATH'];
|
||||
$filepath = str_replace("\\", "", $filepath);
|
||||
$files = StoredFile::RecallByPartialFilepath($filepath);
|
||||
foreach($files as $file){
|
||||
$file->delete();
|
||||
}
|
||||
}
|
||||
$this->view->id = $file->getId();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue