From 475e6ff43d946c9303a1aae8226ab057bcfd6c3f Mon Sep 17 00:00:00 2001 From: Logan Date: Sat, 7 Sep 2024 15:33:06 -0500 Subject: [PATCH] fixed recursion bug --- src/main.rs | 3 +++ src/test.md | 0 2 files changed, 3 insertions(+) create mode 100644 src/test.md diff --git a/src/main.rs b/src/main.rs index c447a8e..82c896c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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() diff --git a/src/test.md b/src/test.md new file mode 100644 index 0000000..e69de29