pub fn add(name: &str, path: Option<&Path>) -> Result<(), String>Expand description
Add name to the disable list at path (or default path if None).
Creates the parent directory and file if they do not exist. No-ops
(with Ok(())) if name is already disabled.
Writes atomically: writes to a sibling .tmp file, then renames.
Refuses to overwrite a malformed file: if the existing list is invalid
TOML, returns Err so the user can fix or delete it manually rather than
losing the previously-disabled entries.
Note: not concurrency-safe — concurrent add() calls may lose writes.
v0.3 limitation; documented in docs/plugin-protocol.md §Disable list.