(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.
(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.
(get-perms path)
Returns the currently set permissions of the given file path.
Returns the currently set permissions of the given file path.
(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".
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close