Liking cljdoc? Tell your friends :D

clj-toolbox.files

Functions for manipulating files

Functions for manipulating files
raw docstring

abs-pathclj

(abs-path path)

Returns a string representing the absolute path of the given path

Returns a string representing the absolute path of the given path
raw docstring

abs-path-joinclj

(abs-path-join & paths)

Returns a string representing the absolute path of the paths joined

Returns a string representing the absolute path of the paths joined
raw docstring

as-pathclj

(as-path x)

backup!clj

(backup! f)

childrenclj

(children path)

Returns the paths of the children of the given path as a vector of strings If path is not an existing directory, this function throws a FileNotFoundException

Returns the paths of the children of the given path as a vector of strings
If path is not an existing directory, this function throws a FileNotFoundException
raw docstring

copyclj

(copy src dst)

dir-exists?clj

(dir-exists? d)

f!+clj


f+clj


file-exists?clj

(file-exists? filename)

homeclj

(home)

last-modifiedclj

(last-modified filename)

mkdirclj

(mkdir filename)

Equivalent to mkdir <filename>

Equivalent to mkdir <filename>
raw docstring

mkdirsclj

(mkdirs filename)

Equivalent to mkdir -p <filename>

Equivalent to mkdir -p <filename>
raw docstring

path->dirnameclj

(path->dirname path)

Gets the dirname from a path Assumes unix-style paths e.g. foo/bar/baz.conf

Gets the dirname from a path
Assumes unix-style paths e.g. foo/bar/baz.conf
raw docstring

path->extclj

(path->ext path)

Gets the extension from a path

Gets the extension from a path
raw docstring

path->filenameclj

(path->filename path)

Gets the filename from a path Assumes unix-style paths e.g. foo/bar/baz.conf

Gets the filename from a path
Assumes unix-style paths e.g. foo/bar/baz.conf
raw docstring

path-joinclj

(path-join & paths)

Returns a string representing the paths joined Return values differ based on platform

Returns a string representing the paths joined
Return values differ based on platform
raw docstring

read-allclj

(read-all f)

Reads all Clojure forms from file {f}

Reads all Clojure forms from file {f}
raw docstring

sizeclj

(size path)

Returns the size of the file or nil if the file does not exist

Returns the size of the file or nil if the file does not exist
raw docstring

strip-extclj

(strip-ext path)

Strips the extension from a path

Strips the extension from a path
raw docstring

temp-dirclj

(temp-dir & {:keys [prefix] :or {prefix ""}})

Creates a new temporary direction with optional prefix

Creates a new temporary direction with optional prefix
raw docstring

temp-fileclj

(temp-file & {:keys [prefix suffix] :or {prefix "" suffix ""}})

Creates a new temporary file with optional prefix and suffix

Creates a new temporary file with optional prefix and suffix
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close