pub fn get_single_hwmon_dir(path: &Path) -> Result<PathBuf, Box<dyn Error>>
Expand description

For cases where we expect exactly one .../hwmon/hwmonX subdirectory of a given path.

This finds the one that’s there, ensures there aren’t any others, and returns it (including whatever original prefix was passed).