Liking cljdoc? Tell your friends :D

puppetlabs.kitchensink.file


atomic-writeclj

(atomic-write path write-function)
(atomic-write path write-function permissions)

Write to a file atomically. This takes a function that should operate on a Writer as its first argument. If permissions are specified (as a string of the form "rwxrwxrwx") then the file will be created with those permissions. If not specified and the file already exists then existing permissions will be preserved. If no file exist a default is set.

Write to a file atomically. This takes a function that should operate on a
Writer as its first argument. If permissions are specified (as a string of the
form "rwxrwxrwx") then the file will be created with those permissions. If
not specified and the file already exists then existing permissions will be
preserved. If no file exist a default is set.
sourceraw docstring

atomic-write-stringclj

(atomic-write-string path string)
(atomic-write-string path string permissions)

Write a string to a file atomically. See atomic-write for more details.

Write a string to a file atomically. See atomic-write for more details.
sourceraw docstring

get-permsclj

(get-perms path)

Returns the currently set permissions of the given file path.

Returns the currently set permissions of the given file path.
sourceraw docstring

source

perms->attributeclj

(perms->attribute permissions)
source

set-permsclj

(set-perms path permissions)

Set the provided permissions on the given path. The permissions string is in the form of the standard 9 character posix format, e.g. "rwxr-xr-x".

Set the provided permissions on the given path. The permissions string is in
the form of the standard 9 character posix format, e.g. "rwxr-xr-x".
sourceraw docstring

str->pathclj

(str->path path)
source

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

× close