valadaptive/Download and Cache File
Cross-platform way to download and cache a file from a URL.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| url | The URL to fetch | yes | — |
| destination | The path to save the file to. Will be [default directory]/[URL file name] if not provided | no | — |
| headers | The headers to send with the request | no | — |
| additional-cache-key | Additional key to match against when caching the file | no | — |
| max-age | The 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 | — |
Outputs
| name | description |
|---|---|
| destination | The path the file was saved to. |