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

ensure-fileclj

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

suffixesclj

(suffixes & suffixes)

Returns a predicate matching suffixes

Returns a predicate matching suffixes
sourceraw docstring

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

× close