make-hard-link ( target link -- )


Vocabulary
io.files.links

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


Word description
Creates a hard link.

Definition
USING: system ;

IN: io.files.links

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


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

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