Liking cljdoc? Tell your friends :D

orchard.util.io

Utility functions for dealing with file system objects, and in/out streams.

Utility functions for dealing with file system objects, and in/out streams.
raw docstring

direct-url-to-file?clj

(direct-url-to-file? url)

Does this URL point to a file directly? i.e., does it use the file: protocol.

Does this URL point to a file directly?
i.e., does it use the file: protocol.
sourceraw docstring

file?clj

source

jar?clj

source

LastModifiedTimecljprotocol

last-modified-timeclj

(last-modified-time this)

Return the last modified time of a File or resource URL.

Return the last modified time of a File or resource URL.
source

resource-artifactclj

(resource-artifact resource)

Return the File from which the given resource URL would be loaded.

For file: URLs returns the location of the resource itself, for jar:..!/... URLs returns the location of the archive containing the resource. Returns a fully qualified File, even when the URL is relative. Throws when the URL is not a file: or jar: URL.

Return the File from which the given resource URL would be loaded.

For `file:` URLs returns the location of the resource itself, for
`jar:..!/...` URLs returns the location of the archive containing the
resource. Returns a fully qualified File, even when the URL is relative.
Throws when the URL is not a `file:` or `jar:` URL.
sourceraw docstring

resource-jarfileclj

(resource-jarfile jar-resource)

Given a jar:file:...!/... URL, return the location of the jar file on the filesystem. Returns nil on any other URL.

Given a jar:file:...!/... URL, return the location of the jar file on the
filesystem. Returns nil on any other URL.
sourceraw docstring

url-protocolclj

(url-protocol url)

Get the URL protocol as a string, e.g. http, file, jar.

Get the URL protocol as a string, e.g. http, file, jar.
sourceraw docstring

url-to-file-within-archive?clj

(url-to-file-within-archive? url)

Does this URL point to a file inside a jar (or zip) archive? i.e., does it use the jar: protocol.

Does this URL point to a file inside a jar (or zip) archive?
i.e., does it use the jar: protocol.
sourceraw docstring

wrap-silentlyclj

(wrap-silently f)

Middleware that executes (f) without printing to System/out or System/err.

(Note that System/out is different from *out*)

Middleware that executes `(f)` without printing to `System/out` or `System/err`.

(Note that `System/out` is different from `*out*`)
sourceraw docstring

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

× close