set-user-execute ( path ? -- ) (original) (raw)

set-user-execute ( path ? -- )
Unix file attributes » Unix file permissions

Prev: set-user-write ( path ? -- )
Next: set-group-read ( path ? -- )

Vocabulary
io.files.info.unix

Inputs

path a pathname string
? a boolean

Outputs
None

Word description
Sets the user execute bit of a file to true or false.

Definition

USING: io.files.info.unix.private kernel ;

IN: io.files.info.unix

: set-user-execute ( path ? -- )
USER-EXECUTE swap chmod-set-bit ;