ClojureDocs

Nav

Namespaces

copy-dir

  • (copy-dir params)
Copy the contents of the src-dirs to the target-dir, optionally do text replacement.
Returns nil.
 Globs are wildcard patterns for specifying sets of files in a directory
tree, as specified in the glob syntax of java.nio.file.FileSystem:
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/FileSystem.html#getPathMatcher(java.lang.String)
 Options:
  :target-dir - required, dir to write files, will be created if it doesn't exist
  :src-dirs   - required, coll of dirs to copy from
  :include    - glob of files to include, default = "**"
  :ignores    - collection of ignore regex patterns (applied only to file names),
                see clojure.tools.build.tasks.copy/default-ignores for defaults
  :replace    - map of source to replacement string in files
  :non-replaced-exts - coll of extensions to skip when replacing (still copied)
                default = ["jpg" "jpeg" "png" "gif" "bmp"]