Clean cache associated with /vsicurl/ and related file systems
Source:R/RcppExports.R
vsi_curl_clear_cache.Rd
vsi_curl_clear_cache()
cleans the local cache associated with /vsicurl/
(and related file systems). This function is a wrapper for
VSICurlClearCache()
and VSICurlPartialClearCache()
in the GDAL Common
Portability Library. See Details for the GDAL documentation.
Arguments
- partial
Logical scalar. Whether to clear the cache only for a given filename (see Details).
- file_prefix
Character string. Filename prefix to use if
partial = TRUE
.- quiet
Logical scalar.
TRUE
(the default) to wrap the API call in a quiet error handler, orFALSE
to print any potential error messages to the console.
Details
/vsicurl/ (and related file systems like /vsis3/, /vsigs/, /vsiaz/,
/vsioss/, /vsiswift/) cache a number of metadata and data for faster
execution in read-only scenarios. But when the content on the server-side
may change during the same process, those mechanisms can prevent opening
new files, or give an outdated version of them.
If partial = TRUE
, cleans the local cache associated for a given filename
(and its subfiles and subdirectories if it is a directory).