remove-file-permissions ( path n -- ) (original) (raw)
remove-file-permissions ( path n -- )
Unix file attributes » Unix file permissions
Prev: | add-file-permissions ( path n -- ) |
---|---|
Next: | set-file-permissions ( path n -- ) |
Inputs
path | a pathname string |
---|---|
n | an integer |
Outputs
None
Word description
Ensures that the bits from n are cleared in the Unix file permissions for a given file.
Definition
: remove-file-permissions ( path n -- )
over file-permissions [ bitnot ] dip bitand
set-file-permissions ;