valadaptive/Download and Cache File

Cross-platform way to download and cache a file from a URL.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
urlThe URL to fetchyes
destinationThe path to save the file to. Will be [default directory]/[URL file name] if not providedno
headersThe headers to send with the requestno
additional-cache-keyAdditional key to match against when caching the fileno
max-ageThe maximum age of the cached file in seconds. If omitted or the empty string, the file will be cached indefinitely. If set to 0, the file will always be re-downloaded.no
namedescription
destinationThe path the file was saved to.