fn collect_nonempty_regfiles( root: &Dir, path: &Utf8Path, out: &mut BTreeSet<Utf8PathBuf>, ) -> Result<()>