Liking cljdoc? Tell your friends :D

std.fs.common


*cwd*clj


*home*clj


*no-follow*clj


*os*clj


*sep*clj


*system*clj


*tmp-dirclj


+access-modes+clj


+all-options+clj


+copy-options+clj


+file-visit-options+clj


+file-visit-results+clj



+open-options+clj


characterise-filterclj

(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?})

characterises a filter based on type

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

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

optionclj

(option)
(option k)

shows all options for file operations

(option) => (contains [:atomic-move :create-new :skip-siblings :read :continue :create :terminate :copy-attributes :append :truncate-existing :sync :follow-links :delete-on-close :write :dsync :replace-existing :sparse :nofollow-links :skip-subtree])

(option :read) => java.nio.file.StandardOpenOption/READ

shows all options for file operations

(option)
=> (contains [:atomic-move :create-new
              :skip-siblings :read :continue
              :create :terminate :copy-attributes
              :append :truncate-existing :sync
              :follow-links :delete-on-close :write
              :dsync :replace-existing :sparse
              :nofollow-links :skip-subtree])

(option :read)
=> java.nio.file.StandardOpenOption/READ
raw docstring

patternclj

(pattern s)

takes a string as turns it into a regex pattern

(pattern ".clj") => #"\Q.\Eclj"

(pattern "src/*") => #"src/.+"

takes a string as turns it into a regex pattern

(pattern ".clj")
=> #"\Q.\Eclj"

(pattern "src/*")
=> #"src/.+"
raw docstring

tag-filterclj

(tag-filter m)

adds a tag to the filter to identify the type

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

adds a tag to the filter to identify the type

(tag-filter {:pattern #"hello"})
=> (just {:tag :pattern
          :pattern #"hello"})
raw docstring

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

× close