From 6cc940f28238d8d44a1a45c9fdaccc56f0408bb3 Mon Sep 17 00:00:00 2001 From: rhetenor Date: Fri, 18 Jul 2025 22:18:50 +0200 Subject: [PATCH] fix url path --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 58c2f76..f2ba8ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,7 +56,8 @@ async fn process_file( let links_replaced = &replace_links(html_stripped); let name = get_file_name(&file); let dir = file.path().parent().unwrap(); - let url = fs::read_to_string(dir.to_str().unwrap().to_owned() + "url").unwrap(); + let url_path = dir.to_str().unwrap().to_owned() + "/url"; + let url = fs::read_to_string(url_path).unwrap(); let github_link_added = links_replaced.to_owned() + "\n" + name.as_str() + " Github: " + url.as_str();