Liking cljdoc? Tell your friends :D

file-traverse

This is a Clojure library for traverse a file path recursively, and apply a function.

Installation

Clojars Project

Usage

Usage:

(require '[kay1759.file-traverse/core :as trv])

(trv/traverse <base directory> <function> <filter for file: optional> <filter for direcotry: optional>)

Example:

(trv/traverse "/src/templates"
    #(spit %
		(str/replace (slurp %)
			"http://mydomain.com"
			"https://mydomain.com")
    #(re-find #"\.html$" (.getName %))))

Tests

lein test

Licence:

[MIT]

Author

Katsuyoshi Yabe

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close