std.fs.common

*cwd*

dynamic

*home*

dynamic

*no-follow*

dynamic

*os*

dynamic

*sep*

dynamic

*system*

dynamic

*tmp-dir

dynamic

+access-modes+

+all-options+

+copy-options+

+file-visit-options+

+file-visit-results+

+open-options+

characterise-filter

added in 3.0

(characterise-filter ft)

characterises a filter based on type

(characterise-filter “src”) => (just {:tag :pattern :pattern #“src”})

(characterise-filter (fn _ nil)) => (just {:tag :fn :fn fn?})

option

added in 3.0

(option)(option k)

pattern

added in 3.0

(pattern s)

takes a string as turns it into a regex pattern

(pattern “.clj”) => #“\Q.\Eclj”

(pattern “src/*”) => #“src/.+”

tag-filter

added in 3.0

(tag-filter m)

adds a tag to the filter to identify the type

(tag-filter {:pattern #“hello”}) => (just {:tag :pattern :pattern #“hello”})