pub fn is_linked(root: &str) -> Result<bool, String>Expand description
Whether root is linked to a vault on this machine (its docs are the
vault’s). Opens nothing beyond the Cloud config; creates nothing.
The vault map alone decides, as for local tasks: a Cloud state or a
vault map that cannot be read is an error (its reason; callers answer
unavailable and refuse), never “unlinked”, so a linked checkout’s
writes never go local silently. Only a vault map that does not exist
yet means no checkout is linked. Signed out, a linked checkout stays
linked: its doc reads and writes go to the vault and are refused
(not_connected) until the machine signs in again; nothing is written
locally for later.