code: public function rename($path, $newpath)
      {
          try {
              $this->getFile($path)->rename($newpath);
          } catch (ApiRequestFailedException $e) {
              return false;
          }
  
          return true;
      }
docs: {@inheritdoc}