code: public function rename($pathFrom, $pathTo)
      {
          self::restorePrev();
          $success = \rename($pathFrom, $pathTo);
          self::register();
          return $success;
      }
docs: Rename a file
  
  @param string $pathFrom existing path
  @param string $pathTo   The URL which the path_from should be renamed to.
  
  @return boolean
  
  @see http://php.net/manual/en/streamwrapper.rename.php