(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)
(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
(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.
(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
(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
(suffixes & suffixes)
Returns a predicate matching suffixes
Returns a predicate matching suffixes
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close