ensure_local_file
ensure_local_file(
resource ,
revalidate: bool = False,
)-> ‘Path’
Return a stable local path for one resource for the current session.
With revalidate, the cache key includes the resource’s fsspec info (size, ETag, …), so a changed resource is re-downloaded, at the cost of one metadata request per call.