From 2a3db170026c78afecb1191eb51c9ba458de9dc4 Mon Sep 17 00:00:00 2001 From: lukas Date: Tue, 25 Feb 2020 12:20:28 +0100 Subject: [PATCH] added dirs to filter --- src/cryogen_core/classpath_able_io.clj | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/cryogen_core/classpath_able_io.clj b/src/cryogen_core/classpath_able_io.clj index fcf62bc..b1d2cc5 100644 --- a/src/cryogen_core/classpath_able_io.clj +++ b/src/cryogen_core/classpath_able_io.clj @@ -36,12 +36,8 @@ (defn filter-resources-for-ignore-patterns [ignore-patterns resources] - (let [files (filter #(= (:resource-type %) :file) resources) - dirs (filter #(= (:resource-type %) :dir) resources) - filtered-files (filter - #(not (re-matches (re-pattern ignore-patterns) (get-filename-from-resource %))) - files)] -(concat dirs filtered-files))) + (filter #(not (re-matches (re-pattern ignore-patterns) (:virtual-path %))) + resources)) (defn resource-from-cp-or-fs ;:- Resource [fs-prefix ;:- Prefix