Liking cljdoc? Tell your friends :D

tech.io

Wrapper for tech io subsystem designed to be drop in replacement for some use cases of clojure.java.io.

Wrapper for tech io subsystem designed to be drop in replacement for some use cases
of clojure.java.io.
raw docstring

*provider*clj

source

copyclj

(copy & args)

Forwards to clojure.java.io/copy

Forwards to clojure.java.io/copy
sourceraw docstring

delete!clj

(delete! url & options)

Delete a resource. Works currently with file or s3.

Delete a resource.  Works currently with file or s3.
sourceraw docstring

exists?clj

(exists? url & options)

Boolean existence check. Works with everything as fallback is to open an input stream and then close it.

Boolean existence check.  Works with everything as fallback is to open
an input stream and then close it.
sourceraw docstring

fileclj

(file path-or-url)

Wrapper around

Wrapper around 
sourceraw docstring

get-ednclj

(get-edn url & options)

Get edn data from a url

Get edn data from a url
sourceraw docstring

get-nippyclj

(get-nippy url & options)

Get nippy data from a url

Get nippy data from a url
sourceraw docstring

get-objectclj

(get-object url & options)

Get object always returns something convertible to an input-stream. It may return a file for instance.

Get object always returns something convertible to an input-stream.
It may return a file for instance.
sourceraw docstring

input-streamclj

(input-stream url & options)

thing->input-stream conversion. Falls back to clojure.java.io if url is not a string url

thing->input-stream conversion.  Falls back to clojure.java.io if url is not a string url
sourceraw docstring

lsclj

(ls url & {:keys [recursive?] :as options})

Return a directory listing. May be recursive if desired; only works with file or s3 providers.

Return a directory listing.  May be recursive if desired; only works with file
or s3 providers.
sourceraw docstring

metadataclj

(metadata url & options)

If supported, returns at least :modify-date and :byte-length. Exception otherwise.

If supported, returns at least :modify-date and :byte-length.
Exception otherwise.
sourceraw docstring

output-stream!clj

(output-stream! url & options)

thing->output-stream conversion. Falls back to clojure.java.io if url is not a string url

thing->output-stream conversion.  Falls back to clojure.java.io if url is not a string url
sourceraw docstring

put-edn!clj

(put-edn! url data & options)

Put edn data to a url

Put edn data to a url
sourceraw docstring

put-nippy!clj

(put-nippy! url data & options)

Put nippy data to a url

Put nippy data to a url
sourceraw docstring

put-object!clj

(put-object! url value & options)

Put object. Object must be a byte-array, a file, or an input-stream. Strings will be interpreted as per the rules of clojure.java.io/input-stream. The most optimizations will apply to either files or byte arrays.

Put object.  Object must be a byte-array, a file, or an input-stream.
Strings will be interpreted as per the rules of clojure.java.io/input-stream.
The most optimizations will apply to either files or byte arrays.
sourceraw docstring

with-providercljmacro

(with-provider url & body)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close