Skip to main content

Module link

Module link 

Source
Expand description

Link-mode selection: how a file from the content-addressed store is materialized into an install directory.

Priority: an explicit mode is honored (with graceful fallback on error); otherwise Auto picks the fastest same-filesystem option (hardlink, then reflink), and falls back to copy across filesystems. We never auto-select symlink: it breaks on Windows without privilege and confuses tools that realpath their own executable.

Enums§

LinkMode

Functions§

materialize
Materialize src (a store blob) at dst using the requested mode.
same_filesystem
Whether two paths live on the same filesystem (device id compare on Unix). On Windows we compare the volume prefix as a best-effort heuristic.