Expand description
The per-directory set of sessions this controller created (OpenCode host guard).
Files in the ctl home: created.<key>.json = [{id, directory}] and its sidecar
created.<key>.lock, which carries a File::lock for every read-merge-write.
Structsยง
Constantsยง
- PROBE_
LIMIT - Ids probed with
session.getper append at most. - SWEEP_
MAX_ AGE_ MS - 30 days, the age past which
sweepremoves untouched files.
Staticsยง
- TMP_SEQ ๐
Functionsยง
- key_for
- 12 hex of sha256 of the canonicalised path (lexically normalised when it does not exist), Windows verbatim prefix stripped before hashing.
- lexical_
normalise ๐ - Resolve
.and..without touching the file system. - read_
entries ๐ - strip_
verbatim - Drop a Windows verbatim prefix:
\\?\C:\x->C:\x,\\?\UNC\h\s->\\h\s.