CC-5806: Airtime Analyzer: Please implement "remove all files"
This commit is contained in:
parent
a5eb5e9901
commit
721e4e1a4a
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,6 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
|
||||
public function clearAction()
|
||||
{
|
||||
//TODO:: make this not accessible via public api??
|
||||
if (!$this->verifyAuth(true, true))
|
||||
{
|
||||
return;
|
||||
|
@ -97,6 +96,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
$updateCriteria->add(CcFilesPeer::FILE_EXISTS, false);
|
||||
BasePeer::doUpdate($selectCriteria, $updateCriteria, $con);
|
||||
|
||||
//delete all files and directories under .../imported
|
||||
$path = isset($_SERVER['AIRTIME_BASE']) ? $_SERVER['AIRTIME_BASE']."/srv/airtime/stor/imported/*" : "/srv/airtime/stor/imported/*";
|
||||
exec("rm -rf $path");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue