Liking cljdoc? Tell your friends :D

hara.io.file.option


+access-modes+clj


+all-options+clj


+copy-options+clj


+file-permissions+clj


+file-visit-options+clj


+file-visit-results+clj



+open-options+clj


from-permissionsclj

(from-permissions modes)

transforms permissions to mode

(from-permissions [:owner-read :group-read :group-execute :others-read :others-execute]) => "455"

transforms permissions to mode

(from-permissions [:owner-read
                   :group-read
                   :group-execute
                   :others-read
                   :others-execute])
=> "455"
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

to-mode-numberclj

(to-mode-number s)

transforms mode numbers to mode strings

(to-mode-number "r--r-xr-x") => "455"

(to-mode-number "rwxrwxrwx") => "777"

transforms mode numbers to mode strings

(to-mode-number "r--r-xr-x")
=> "455"

(to-mode-number "rwxrwxrwx")
=> "777"
raw docstring

to-mode-stringclj

(to-mode-string s)

transforms mode numbers to mode strings

(to-mode-string "455") => "r--r-xr-x"

(to-mode-string "777") => "rwxrwxrwx"

transforms mode numbers to mode strings

(to-mode-string "455")
=> "r--r-xr-x"

(to-mode-string "777")
=> "rwxrwxrwx"
raw docstring

to-permissionsclj

(to-permissions s)

transforms mode to permissions

(to-permissions "455")
=> (contains [:owner-read :group-read :group-execute :others-read :others-execute] :in-any-order)

transforms mode to permissions

(to-permissions "455")  
=> (contains [:owner-read
              :group-read
              :group-execute
              :others-read
              :others-execute] :in-any-order)
raw docstring

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

× close