file-permissions ( path -- n ) (original) (raw)
file-permissions ( path -- n )
Unix file attributes » Unix file permissions
Next: | uid? ( obj -- ? ) |
---|
Inputs
path | a pathname string |
---|
Outputs
n | an integer |
---|
Word description
Returns the Unix file permissions for a given file.
Definition
USING: accessors io.backend io.files.info ;
: file-permissions ( path -- n )
normalize-path file-info permissions>> ;