rm() protected method

Remove dirs/files
Author: Dmitry (dio) Levashov
protected rm ( $args ) : array
return array
Beispiel #1
0
 protected function rm($args)
 {
     $result = parent::rm($args);
     foreach ($args['targets'] as $target) {
         // If the image has a corresponding Visual, remove it
         $path = $this->getPath($target);
         $v = Visual::get_by_path($path);
         if ($v) {
             $v->delete();
         }
     }
     return $result;
 }