cc-2882: Airtime cannot delete watched folder when is been renamed
- initial commit
This commit is contained in:
parent
e1fe877ac6
commit
b1fa8901ca
7 changed files with 104 additions and 6 deletions
|
@ -535,6 +535,14 @@ class ApiController extends Zend_Controller_Action
|
|||
$file->delete();
|
||||
}
|
||||
}
|
||||
else if ($mode == "delete_dir") {
|
||||
$filepath = $md['MDATA_KEY_FILEPATH'];
|
||||
$filepath = str_replace("\\", "", $filepath);
|
||||
$files = Application_Model_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