Exemplo n.º 1
0
 /**
  * Removes the category path
  *
  * @param $input
  * @return bool
  */
 public function destroyCategory($input)
 {
     if (isset($input['category'])) {
         $localPath = $this->CategoryPaths->fromDot($input['category']);
         $serverPath = $this->CategoryPaths->serverPath($localPath);
         return $this->Filesystem->deleteDirectory($serverPath);
     }
     return false;
 }