Liking cljdoc? Tell your friends :D

re-conf.resources.file

File resources

File resources
raw docstring

chmodcljs

(chmod dest mode)
(chmod c dest mode)

Change file/directory mode resource

Change file/directory mode resource
raw docstring

chowncljs

(chown dest uid gid)
(chown c dest uid gid)

Change file/directory owner resource

Change file/directory owner resource
raw docstring

containscljs

(contains f s)
(contains c f s)

Check that a file contains string spec

Check that a file contains string spec
raw docstring

directorycljs

(directory dest)
(directory c dest)
(directory c dest state)

Directory resource

Directory resource
raw docstring

directory-statescljs


fscljs


linecljs

(line file l)
(line file l state)
(line c file l state)

File line resource either append or remove lines: (line "/tmp/foo" "bar"); append line to the file (line "/tmp/foo" "bar" :present); append explicit (line "/tmp/foo" (line-eq "bar") :absent); remove lines equal to bar from the file (line "/tmp/foo" (fn [curr] (> 5 (.length curr))) :absent); remove lines using a function

File line resource either append or remove lines:
(line "/tmp/foo" "bar"); append line to the file
(line "/tmp/foo" "bar" :present); append explicit
(line "/tmp/foo" (line-eq "bar") :absent); remove lines equal to bar from the file
(line "/tmp/foo" (fn [curr] (> 5 (.length curr))) :absent); remove lines using a function
raw docstring

line-eqcljs

(line-eq line)

line equal predicate

line equal predicate
raw docstring

line-statescljs


mkdircljs

(mkdir d)

(mklink src target)

rmdircljs

(rmdir d)

statscljs

(stats dest)

Get file stats info

Get file stats info
raw docstring

(symlink src target)
(symlink src target state)
(symlink c src target state)

Symlink resource

Symlink resource
raw docstring


templatecljs

(template args tmpl dest)
(template c args tmpl dest)

File template resource

File template resource
raw docstring

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

× close