original_string: public function renameFile()
      {
          $this->event(YouweFileManagerEvents::BEFORE_FILE_RENAMED);
          $target_full_path = $this->getTargetFile()->getFilepath(true);
          $this->getDriver()->renameFile($this->getCurrentFile(), $target_full_path);
          $this->resolveImage();
          $this->getCurrentFile()->updateFilepath($target_full_path);
          $this->event(YouweFileManagerEvents::AFTER_FILE_RENAMED);
      }
code: public function renameFile()
      {
          $this->event(YouweFileManagerEvents::BEFORE_FILE_RENAMED);
          $target_full_path = $this->getTargetFile()->getFilepath(true);
          $this->getDriver()->renameFile($this->getCurrentFile(), $target_full_path);
          $this->resolveImage();
          $this->getCurrentFile()->updateFilepath($target_full_path);
          $this->event(YouweFileManagerEvents::AFTER_FILE_RENAMED);
      }
code_tokens: public function renameFile ( ) { $ this -> event ( YouweFileManagerEvents :: BEFORE_FILE_RENAMED ) ; $ target_full_path = $ this -> getTargetFile ( ) -> getFilepath ( true ) ; $ this -> getDriver ( ) -> renameFile ( $ this -> getCurrentFile ( ) , $ target_full_path ) ; $ this -> resolveImage ( ) ; $ this -> getCurrentFile ( ) -> updateFilepath ( $ target_full_path ) ; $ this -> event ( YouweFileManagerEvents :: AFTER_FILE_RENAMED ) ; }
docstring: Rename the file
docstring_tokens: Rename the file