(abs-path p)
(abs-path a b)
If b
is a relative path, will combine it with a
, otherwise
will just return b
.
If `b` is a relative path, will combine it with `a`, otherwise will just return `b`.
(add-shutdown-hook! h)
Executes h
when the JVM shuts down. Returns the thread that will
execute the hook.
Executes `h` when the JVM shuts down. Returns the thread that will execute the hook.
(combine a b)
Returns the canonical path of combining a
and b
Returns the canonical path of combining `a` and `b`
(delete-dir dir)
Deletes directory recursively
Deletes directory recursively
(fn-name x)
If x points to a fn, returns its name without namespace
If x points to a fn, returns its name without namespace
(load-privkey f)
Load private key from file or from string
Load private key from file or from string
(or-nil f)
Wraps f
so that when the argument is nil
, it also returns nil
and does not invoke f
.
Wraps `f` so that when the argument is `nil`, it also returns `nil` and does not invoke `f`.
(rebase-path p from to)
Given two absolute paths, recalculates p so that it becomes relative to to
instead
of from
.
Given two absolute paths, recalculates p so that it becomes relative to `to` instead of `from`.
(round-up x)
Rounds the decimal argument up to the next integer value
Rounds the decimal argument up to the next integer value
(stack-trace ex)
Prints stack trace to a string
Prints stack trace to a string
(tmp-file name)
(tmp-file prefix suffix)
Generates a new temporary path
Generates a new temporary path
(try-slurp x)
Reads the file if it exists, or just returns x
Reads the file if it exists, or just returns x
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close