Stores paths to search for filenames with find-in-paths
Stores paths to search for filenames with find-in-paths
(assert-args fnname & pairs)
(file-exists? abs-file)
If file exists, returns file. Else returns nil. Please note URLs are not checked and there should be a exception handler in case URL doesn't exist.
If file exists, returns file. Else returns nil. Please note URLs are not checked and there should be a exception handler in case URL doesn't exist.
(find-in-paths file-name)
Tries to find a file with such name in paths. Returns found file's path if succeeded, else returns nil.
Tries to find a file with such name in paths. Returns found file's path if succeeded, else returns nil.
(format-code form)
Print Clojure's forms in pretty format
Print Clojure's forms in pretty format
(get-dir abs-file)
Get directory path from absolute file path.
Get directory path from absolute file path.
(re-compare x)
(re-compare x y)
(re-compare x y & more)
Compare regular expressions
Compare regular expressions
(re? expr)
Checks if an object is a regular expression.
Checks if an object is a regular expression.
(replace-map s m)
Replaces match sub-strings with replacements found in a map. Use array-map to reserve key orders.
Replaces match sub-strings with replacements found in a map. Use array-map to reserve key orders.
(resource-path? s)
Check if a string is a resource url (starting with r:/).
Check if a string is a resource url (starting with r:/).
(timestamp)
Generates timestamp string in HH:mm:ss format.
Generates timestamp string in HH:mm:ss format.
(to-abs-path path)
Converts a path to an absolute one.
Converts a path to an absolute one. - If given path is home-relative, expands it - If given path is already absolute path (files, urls or resources) returns it. - Else (given path is relative), returns nil.
(to-full-path path-dir fname)
Makes a full path from a directory path and a relative file name.
Makes a full path from a directory path and a relative file name.
(to-resource s)
Makes resource object from r:/ path.
Makes resource object from r:/ path.
(with-timeout ms & body)
Executes a form within a time limit in miliseconds
Executes a form within a time limit in miliseconds
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close