Expand description
A machine-wide registry of known wipe projects, plus a filesystem scanner.
Because collaboration is git-only, there’s no server that “knows” your
projects. The daemon records every board it serves here so the UI can list and
switch between them - but a board cloned onto a fresh machine has never been
served, so it wouldn’t appear. scan closes that gap by walking the disk for
.wipe directories and registering whatever it finds, so serving from anywhere
surfaces every board you have locally.
Structs§
- Project
Entry - One registered project.
Functions§
- default_
scan_ roots - Default roots to scan when none are configured: the user’s home directory.
- list
- List all registered projects that still have a
.wipeboard, annotating each with its current board name. - prune
- Remove any registered projects whose
.wipeno longer exists on disk. - register
- Record a project root in the registry (idempotent). Best-effort: persistence failures are ignored so serving never breaks over a registry issue. Returns true if it was newly added.
- scan
- Walk
roots(tomax_depthlevels) for.wipeboards and register each one. Returns the newly-registered roots. Heavy/generated directories are skipped and a board directory is never descended into (boards don’t nest). A visit cap bounds the worst case on very large trees.