Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
yup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sky9x committed Nov 22, 2023
1 parent 89db606 commit 59398dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dircheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ pub fn dir_check(dir: &Path, root: &NavFolder) -> Result<DirCheck> {
trace!("dir_check cb path={path:?}");

if path.extension() != Some("md".as_ref()) {
debug!("found extra file: {path}");
trace!("found extra file: {path}");
// if it's not an .md file, it's extra
extra.push(path);
} else if !nav_paths.contains(&path) {
debug!("found unused file: {path}");
trace!("found unused file: {path}");
// if it's an .md file, and it's not in the nav, it's unused
unused.push(path);
}
})?;

debug!("dir_check extra: {extra:#?}");

Ok(DirCheck { unused, extra })
}

Expand Down

0 comments on commit 59398dd

Please sign in to comment.