/**
  * Rename a file.
  *
  * @param string $path
  * @param string $newpath
  *
  * @return bool
  */
 public function rename($path, $newpath)
 {
     try {
         return (bool) $this->api->rename($path, $newpath);
     } catch (\Exception $e) {
         return false;
     }
 }