Download IBGE Microdata File
ibge_microdata_download_fileMirror an official IBGE microdata file from ftp.ibge.gov.br to a local cache path, reusing cached files when their byte size matches the server metadata.
Instructions
Download or reuse a selected official IBGE microdata file in a local cache path.
This is explicit and local-first: the tool mirrors the ftp.ibge.gov.br URL under cacheRoot, checks official HEAD content-length metadata, and skips re-downloading when a cached file has the expected byte size. Use ibge_microdata_file_info first for large files so the user understands size before downloading.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Official ftp.ibge.gov.br file URL to download. | |
| cacheRoot | Yes | Local cache root where the official IBGE URL path will be mirrored. |