1 USING: help.markup help.syntax io.files.info math ;
5 { $values { "target" "a path to the symbolic link's target" } { "symlink" "a path to new symbolic link" } }
6 { $description "Creates a symbolic link." } ;
9 { $values { "target" "a path to the hard link's target" } { "link" "a path to new symbolic link" } }
10 { $description "Creates a hard link." } ;
13 { $values { "symlink" "a path to an existing symbolic link" } { "path" "the path pointed to by the symbolic link" } }
14 { $description "Reads the symbolic link and returns its target path." } ;
17 { $values { "target" "a path to an existing symlink" } { "symlink" "a path to a new symbolic link" } }
18 { $description "Copies a symbolic link without following the link." } ;
22 { "path" "a pathname string" }
23 { "path'" "a pathname string" }
25 { $description "Returns an absolute path from " { $link read-link } "." } ;
29 { "path" "a pathname string" }
30 { "path'" "a pathname string" }
32 { $description "Follows a chain of symlinks up to " { $link symlink-depth } "." } ;
34 { read-link follow-link follow-links } related-words
40 { $description "The number of redirections " { $link follow-links } " will follow." } ;
42 HELP: too-many-symlinks
44 { "path" "a pathname string" } { "n" integer }
46 { $description "An error thrown when the number of redirections in a chain of symlinks surpasses the value in the " { $link symlink-depth } " variable." } ;
48 ARTICLE: "io.files.links" "Symbolic links"
56 { $subsections make-link }
58 { $subsections copy-link }
59 "Not all operating systems support symbolic links."
60 { $see-also link-info } ;
62 ABOUT: "io.files.links"