Liking cljdoc? Tell your friends :D

clj-toolbox.files


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
sourceraw 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
sourceraw docstring

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
sourceraw docstring

create-temp-dircljdeprecated

source

create-temp-filecljdeprecated

source

dir-exists?clj

(dir-exists? d)
source

f!+clj

source

f+clj

source

file-exists?clj

(file-exists? filename)
source

file-last-modifiedcljdeprecated

(file-last-modified filename)
source

file-mkdircljdeprecated

(file-mkdir filename)

Equivalent to mkdir <filename>

Equivalent to mkdir <filename>
sourceraw docstring

file-mkdirscljdeprecated

(file-mkdirs filename)

Equivalent to mkdir -p <filename>

Equivalent to mkdir -p <filename>
sourceraw docstring

last-modifiedclj

(last-modified filename)
source

mkdirclj

(mkdir filename)

Equivalent to mkdir <filename>

Equivalent to mkdir <filename>
sourceraw docstring

mkdirsclj

(mkdirs filename)

Equivalent to mkdir -p <filename>

Equivalent to mkdir -p <filename>
sourceraw 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
sourceraw docstring

path->extclj

(path->ext path)

Gets the extension from a path

Gets the extension from a path
sourceraw 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
sourceraw 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
sourceraw docstring

read-allclj

(read-all f)

Reads all Clojure forms from file {f}

Reads all Clojure forms from file {f}
sourceraw 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
sourceraw docstring

strip-extclj

(strip-ext path)

Strips the extension from a path

Strips the extension from a path
sourceraw 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
sourceraw 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
sourceraw docstring

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

× close