raz / commit ebbd9966

commit
ebbd9966a48135800321d5eb6d28e7e28448ab39
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
e4373052
The report, for review: Sys.Info tells a symbolic link (2026-10.6)

info follows a link as before; link says the path was one, so a walk
(rloc's) can refuse to follow a link back up the tree.

patch · log

1 file changed, +8 -0

doc/raz.md (history) modified +8 -0

@@ -956,6 +956,7 @@
956956 Info* = record
957957 size*: I64; (* in bytes *)
958958 dir*: BOOL; (* a directory *)
959+ link*: BOOL; (* the path itself is a symbolic link *)
959960 end;
960961 Dir* = record ... end; (* an open directory; its fields are the target's *)
961962
@@ -986,6 +987,11 @@
986987 proc kill*(pid, signal: I64): I64;
987988 ```
988989
990+`info` follows a symbolic link: `size` and `dir` are those of what it
991+names, and `link` says the path was a link, so that a program walking
992+a tree can choose not to follow one back up it. A link to nothing is
993+`-ENOENT`, as a missing file is.
994+
989995 `nextEntry` gives every name in the directory except `.` and `..`, in
990996 no particular order. `rawMode` turns off what the terminal does with
991997 keys before the program reads them: echo, waiting for a whole line,
@@ -1063,3 +1069,5 @@
10631069 - **2026-10.5.** A module with files in more than one of the
10641070 directories searched is an error, unless the first is a link to one
10651071 of the others (section 3).
1072+- **2026-10.6.** `Sys.Info` says whether the path is a symbolic link
1073+ (section 11).