Handbook
Glossary
remove-file-permissions ( path n -- )
Unix file attributes
ยป
Unix file permissions
Prev:
add-file-permissions ( path n -- )
Next:
set-file-permissions ( path n -- )
Vocabulary
io
.
files
.
info
.
unix
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
USING:
kernel
math
;
IN:
io.files.info.unix
:
remove-file-permissions
( path n -- )
over
file-permissions
[
bitnot
]
dip
bitand
set-file-permissions
;