Handbook
Glossary
follow-link ( path -- path' )
Factor handbook
»
Input and output
»
Symbolic links
Prev:
read-link ( symlink -- path )
Next:
follow-links ( path -- path' )
Vocabulary
io
.
files
.
links
Inputs
path
a pathname string
Outputs
path'
a pathname string
Word description
Returns an absolute path from
read-link
.
See also
read-link
,
follow-links
Definition
USING:
io.pathnames
kernel
;
IN:
io.files.links
:
follow-link
( path -- path' )
[
parent-directory
]
[
read-link
]
bi
append-path
;