fixed recursion bug

This commit is contained in:
Logan 2024-09-07 15:33:06 -05:00
parent f0f3a74dcb
commit 475e6ff43d
2 changed files with 3 additions and 0 deletions

View file

@ -44,6 +44,9 @@ fn convert_all(src_path: &Path, dist_path: &Path) {
Ok(p) => p,
Err(_) => continue,
};
if entry.path() == src_path {
continue;
}
let file = entry.path();
let extension = file
.extension()

0
src/test.md Normal file
View file