Liking cljdoc? Tell your friends :D

clojure.tools.build.util.file


collect-filesclj

(collect-files root
               &
               {:keys [dirs collect]
                :or {dirs false collect (constantly true)}})

Recursively collect all paths under path, starting from root. Options: :dirs - whether to collect directories (default false) :collect - function for whether to collect a path (default yes)

Recursively collect all paths under path, starting from root.
Options:
 :dirs - whether to collect directories (default false)
 :collect - function for whether to collect a path (default yes)
raw docstring

copy-contentsclj

(copy-contents src-dir target-dir)
(copy-contents src-dir target-dir prefixes)

Copy files in src dir to target dir, optionally filtering by prefix paths

Copy files in src dir to target dir, optionally filtering by prefix paths
raw docstring

copy-fileclj

(copy-file src-file target-file)

Copy file from src to target, retaining file attributes. Returns nil.

Copy file from src to target, retaining file attributes. Returns nil.
raw docstring

deleteclj

(delete file)

Recursively delete file, where file is coerced with clojure.java.io/file

Recursively delete file, where file is coerced with clojure.java.io/file
raw docstring

ensure-dirclj

(ensure-dir dir)

Ensure dir exists by making all parent directories and return it

Ensure dir exists by making all parent directories and return it
raw docstring

ensure-fileclj

(ensure-file file)
(ensure-file file contents & opts)

suffixesclj

(suffixes & suffixes)

Returns a predicate matching suffixes

Returns a predicate matching suffixes
raw docstring

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

× close