original_string: public function chmod($remote_file, $mode)
      {
          $mode = octdec(str_pad($mode, 4, '0', STR_PAD_LEFT));
          $mode = (int) $mode;
  
          if (!@ftp_chmod($this->connection, $mode, $remote_file) !== false) {
              throw new \Exception("Could not change remote file to mode: " . $mode);
          }
  
          return true;
      }
code: public function chmod($remote_file, $mode)
      {
          $mode = octdec(str_pad($mode, 4, '0', STR_PAD_LEFT));
          $mode = (int) $mode;
  
          if (!@ftp_chmod($this->connection, $mode, $remote_file) !== false) {
              throw new \Exception("Could not change remote file to mode: " . $mode);
          }
  
          return true;
      }
code_tokens: public function chmod ( $ remote_file , $ mode ) { $ mode = octdec ( str_pad ( $ mode , 4 , '0' , STR_PAD_LEFT ) ) ; $ mode = ( int ) $ mode ; if ( ! @ ftp_chmod ( $ this -> connection , $ mode , $ remote_file ) !== false ) { throw new \ Exception ( "Could not change remote file to mode: " . $ mode ) ; } return true ; }
docstring: Change the file mode of a remote file
  @param string $remote_file The path to the remote file
  @param integer $mode The file mode e.g. 0644, 0777
  @return boolean
docstring_tokens: Change the file mode of a remote file