make-hard-link ( target link -- ) (original) (raw)

make-hard-link ( target link -- )

Vocabulary
io.files.links

Inputs

target a path to the hard link's target
link a path to new symbolic link

Outputs
None

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 ;