(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"
(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
(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"
(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"
(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)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close