remote_first_handle
remote_first_handle(
resource: UPath ,
mode: str ,
remote_opener ,
)
Open a remote file, preferring a cached local copy.
Otherwise the handle reads remotely through remote_opener until the server cannot serve the byte ranges a read needs, then moves to a local copy, which the remote-cache settings may refuse.