Provides a simple caching mechanism for TRUD files.
Provides a simple caching mechanism for TRUD files.
(download-url url target)(download-url url target {:keys [show-progress? expected-size-bytes]})Download a file from the URL to the target path. Parameters:
Download a file from the URL to the target path.
Parameters:
- url : a string representation of a URL.
- target : path to target.
- options : optional :
- :show-progress? : whether to print a progress bar
- :expected-size-bytes : total bytes.(get-archive-file dir release)(get-archive-file dir release {:keys [_show-progress?] :as opts})Get an archive file either from the cache or downloaded from TRUD.
Returns result as a java.nio.file.Path.
Get an archive file either from the cache or downloaded from TRUD. Returns result as a `java.nio.file.Path`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |