"Mob Session DONE [ci-skip]"

This commit is contained in:
jem 2019-12-03 17:07:42 +01:00
parent c003e79fc3
commit 90935bab43
2 changed files with 14 additions and 1 deletions

View file

@ -3,5 +3,18 @@
[clojure.string :as s] [clojure.string :as s]
[me.raynes.fs :as fs])) [me.raynes.fs :as fs]))
(defn copy-resources
[source-path target-path]
(cond
(not (.exists (io/file source-path)))
(throw (IllegalArgumentException. (str "resource " source-path " not found")))
(.isDirectory (io/file source-path))
(copy-dir source-path target-path ignored-files)
:else
(fs/copy source-path target-path)))
(defn copy-resources-from-theme (defn copy-resources-from-theme
[theme target]) [theme target]
(let [source-path (str "templates/themes/" theme "/js")
target-path (str target "/js")]
copy-resources source-path target-path))