private function extractFile($tempname)
    {
        $extractedFiles = $this
            ->extractor
            ->extractFromFile($tempname)
            ->files()
            ->notName('readme.txt')
            ->getIterator();

        $extractedFiles->rewind();
        if (!$extractedFiles->valid()) {
            throw new FileNotFoundException();
        }

        return $extractedFiles->current();
    }
private function extractFile($tempname)
    {
        $extractedFiles = $this
            ->extractor
            ->extractFromFile($tempname)
            ->files()
            ->notName('readme.txt')
            ->getIterator();

        $extractedFiles->rewind();
        if (!$extractedFiles->valid()) {
            throw new FileNotFoundException();
        }

        return $extractedFiles->current();
    }
private function extractFile ( $ tempname ) { $ extractedFiles = $ this -> extractor -> extractFromFile ( $ tempname ) -> files ( ) -> notName ( 'readme.txt' ) -> getIterator ( ) ; $ extractedFiles -> rewind ( ) ; if ( ! $ extractedFiles -> valid ( ) ) { throw new FileNotFoundException ( ) ; } return $ extractedFiles -> current ( ) ; }
Download file and return new pathname of extracted content.

The geoname's zipfile contains this structure:
- {countryCode}.txt
- readme.txt

We're only interested in the first file.

@param string $tempname temporary name for downloaded content

@return string Pathname of the resulting file
Download file and return new pathname of extracted content .