Handbook
Glossary
symbolic-link? ( path/info -- ? )
Factor handbook
»
Input and output
»
File system metadata
Prev:
regular-file? ( path/info -- ? )
Next:
file-readable? ( path -- ? )
Vocabulary
io
.
files
.
info
Inputs
path/info
a pathname string or a
file-info-tuple
Outputs
?
a
boolean
Word description
Tests if
path/info
is a symbolic link. Unlike other type predicates in this vocabulary, does not dereference links when passed a path, so it is possible for both this and another type predicate to be true for the same path.
Definition
USING:
accessors
io.files.info.private
io.files.types
kernel
;
IN:
io.files.info
:
symbolic-link?
( path/info -- ? )
[
>link-info
type>>
+symbolic-link+
=
]
?call
;