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;
    }
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;
    }
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 ; }
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.
Public method get_file