original_string: function get_file($srcpath, $localpath) {
  
          $localpath = $this->utf_decode_path($localpath);
  
          $handle = fopen($localpath, 'wb');
          if ($handle) {
              $unused = '';
              $ret = $this->get($srcpath, $unused, $handle);
              fclose($handle);
              if ($ret) {
                  return true;
              }
          }
          return false;
      }
code: function get_file($srcpath, $localpath) {
  
          $localpath = $this->utf_decode_path($localpath);
  
          $handle = fopen($localpath, 'wb');
          if ($handle) {
              $unused = '';
              $ret = $this->get($srcpath, $unused, $handle);
              fclose($handle);
              if ($ret) {
                  return true;
              }
          }
          return false;
      }
code_tokens: function get_file ( $ srcpath , $ localpath ) { $ localpath = $ this -> utf_decode_path ( $ localpath ) ; $ handle = fopen ( $ localpath , 'wb' ) ; if ( $ handle ) { $ unused = '' ; $ ret = $ this -> get ( $ srcpath , $ unused , $ handle ) ; fclose ( $ handle ) ; if ( $ ret ) { return true ; } } return false ; }
docstring: Public method get_file
  
  Gets a file from a collection into local filesystem.
  
  fopen() is used.
  @param string $srcpath
  @param string $localpath
  @return bool true on success. false on error.
docstring_tokens: Public method get_file