"Mob Session DONE [ci-skip]"
This commit is contained in:
parent
c003e79fc3
commit
90935bab43
2 changed files with 14 additions and 1 deletions
|
@ -3,5 +3,18 @@
|
|||
[clojure.string :as s]
|
||||
[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
|
||||
[theme target])
|
||||
[theme target]
|
||||
(let [source-path (str "templates/themes/" theme "/js")
|
||||
target-path (str target "/js")]
|
||||
copy-resources source-path target-path))
|
||||
|
|
Loading…
Reference in a new issue