make-link ( target symlink -- )
Factor documentation > Factor handbook > Input and output > Symbolic links
Prev:follow-links ( path -- path' )
Next:copy-link ( target symlink -- )


Vocabulary
io.files.links

Inputs and outputs
targeta path to the symbolic link's target
symlinka path to new symbolic link


Word description
Creates a symbolic link.

Definition
USING: system ;

IN: io.files.links

HOOK: make-link os ( target symlink -- )


Methods
USING: io.backend io.files.links kernel system unix unix.ffi ;

M: unix make-link
normalize-path [ symlink ] unix-system-call drop ;