Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
file-executable? ( path -- ? )
Factor handbook
>
Input and output
>
File system meta-data
Prev:
file-writable? ( path -- ? )
Vocabulary
io.files.info
Inputs and outputs
path
a pathname string
?
a
boolean
Word description
Returns whether the file specified by
path
is executable by the current process.
Errors
Throws an error if the file does not exist.
Definition
USING:
system
;
IN:
io.files.info
HOOK:
file-executable?
os
( path -- ? )
Methods
USING:
io.files.info
io.files.info.unix.private
system
unix.ffi
;
M:
unix
file-executable?
X_OK
access?
;