This is a Clojure library for traverse a file path recursively, and apply a function.
(require '[kay1759.file-traverse/core :as trv])
(trv/traverse <base directory> <function> <filter for file: optional> <filter for direcotry: optional>)
(trv/traverse "/src/templates"
#(spit %
(str/replace (slurp %)
"http://mydomain.com"
"https://mydomain.com")
#(re-find #"\.html$" (.getName %))))
lein test
[MIT]
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close