original_string: public function changeDirectory($directory)
      {
          $result = @ftp_chdir($this->connection, $directory);
          
          if ($result === false) {
              throw new Exception('Unable to change directory');
          }
  
          return $this;
      }
code: public function changeDirectory($directory)
      {
          $result = @ftp_chdir($this->connection, $directory);
          
          if ($result === false) {
              throw new Exception('Unable to change directory');
          }
  
          return $this;
      }
code_tokens: public function changeDirectory ( $ directory ) { $ result = @ ftp_chdir ( $ this -> connection , $ directory ) ; if ( $ result === false ) { throw new Exception ( 'Unable to change directory' ) ; } return $ this ; }
docstring: Changes the current directory to the specified one
  
  @return FTPClient
docstring_tokens: Changes the current directory to the specified one