|
|
|
@ -71,8 +71,8 @@
|
|
|
|
|
extension (ext) ignoring any files that match the given (ignored-files).
|
|
|
|
|
First make sure that the root directory exists, if yes: process as normal;
|
|
|
|
|
if no, return empty vector."
|
|
|
|
|
[base-path paths ext ignored-files]
|
|
|
|
|
(let [assets (cp-io/get-resources "content" base-path paths)
|
|
|
|
|
[fs-prefix base-path paths ext ignored-files]
|
|
|
|
|
(let [assets (cp-io/get-resources fs-prefix base-path paths)
|
|
|
|
|
filter-file (fn [xs] (filter #(= (:resource-type %) :file) xs))
|
|
|
|
|
filter-ext (fn [xs] (filter #(= (get-file-extension-from-resource %) ext) xs))
|
|
|
|
|
cast-file (fn [java-path] (io/as-file (.toString java-path)))
|
|
|
|
|