/**
  * {@inheritDoc}
  */
 public function rename(Response $response, $target, $name)
 {
     $name = pathinfo($target, PATHINFO_DIRNAME) . DIRECTORY_SEPARATOR . $name;
     rename($target, $name);
     $tmb = $this->getThumb($target);
     if (file_exists($tmb)) {
         unlink($tmb);
     }
     $response->addRemoved(FileInfo::createHash($target, $this->driverId));
     $response->addAdded($this->getFileInfo($name));
 }