(build-url url)
Creates java.net.URL from string
Creates java.net.URL from string
(create-tmpdir parent prefix permissions)
Creates a temporary directory in parent (something clojure.java.io/as-path can handle) with the specified permissions string (something PosixFilePermissions/asFileAttribute can handle i.e. "rw-------") and returns its Path.
Creates a temporary directory in parent (something clojure.java.io/as-path can handle) with the specified permissions string (something PosixFilePermissions/asFileAttribute can handle i.e. "rw-------") and returns its Path.
(error & args)
(filter-vals m pred)
Like filter, but for values over a map: If pred is satisfied on a value in m, then its entry is preserved, otherwise it is removed.
Like filter, but for values over a map: If pred is satisfied on a value in m, then its entry is preserved, otherwise it is removed.
(get-arch)
Returns a keyword naming the host architecture
Returns a keyword naming the host architecture
(get-os)
Returns a keyword naming the host OS.
Returns a keyword naming the host OS.
(last-distinct coll)
Like distinct, but retains the last version instead of the first version of a duplicate.
Like distinct, but retains the last version instead of the first version of a duplicate.
(last-distinct-by f coll)
Returns a lazy sequence of the elements of coll, removing any elements that return duplicate values when passed to a function f. Only the last element that is a duplicate is preserved.
Returns a lazy sequence of the elements of coll, removing any elements that return duplicate values when passed to a function f. Only the last element that is a duplicate is preserved.
(map-vals m f & args)
Like 'update', but for all values in a map.
Like 'update', but for all values in a map.
(mkdirs f)
Make a given directory and its parents, but throw an Exception on failure.
Make a given directory and its parents, but throw an Exception on failure.
(ns-exists? namespace)
(platform-nullsink)
Returns a file destination that will discard output.
Returns a file destination that will discard output.
(read-file file)
Returns the first Clojure form in a file if it exists.
Returns the first Clojure form in a file if it exists.
(read-git-head git-dir)
Reads the value of HEAD and returns a commit SHA1, or nil if no commit exist.
Reads the value of HEAD and returns a commit SHA1, or nil if no commit exist.
(rebind-io!)
(relativize base path)
Makes the filepath path relative to base. Assumes base is an ancestor to path, and that the path contains no '..'.
Makes the filepath path relative to base. Assumes base is an ancestor to path, and that the path contains no '..'.
(require-resolve sym)
(require-resolve ns sym)
Resolve a fully qualified symbol by first requiring its namespace.
Resolve a fully qualified symbol by first requiring its namespace.
(resolve-git-dir project)
(strip-properties-comments s)
Takes a string containing serialized java.util.Properties and removes all the comment lines (those beginning with #)
Takes a string containing serialized java.util.Properties and removes all the comment lines (those beginning with #)
(symlink? file)
Checks if a File is a symbolic link or points to another file.
Checks if a File is a symbolic link or points to another file.
(with-system-err-str & body)
Like with-out-str, but for System/err.
Like with-out-str, but for System/err.
(with-system-out-str & body)
Like with-out-str, but for System/out.
Like with-out-str, but for System/out.
(with-write-permissions path & body)
Runs body only if path is writeable, or - if it does not already exist - can be created.
Runs body only if path is writeable, or - if it does not already exist - can be created.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close