check permissions of given file
Parameters
permissions file :string
Attributes
set | :dictionary | set using given file permissions |
Returns
Examples
copy
inspect permissions "bin/arturo"
; [ :dictionary
; user : [ :dictionary
; read : true :boolean
; write : true :boolean
; execute : true :boolean
; ]
; group : [ :dictionary
; read : true :boolean
; write : false :boolean
; execute : true :boolean
; ]
; others : [ :dictionary
; read : true :boolean
; write : false :boolean
; execute : true :boolean
; ]
; ]
copy
permissions.set:#[others:#[write:true]] "bin/arturo"
; gave write permission to 'others'
Related