fix url path

This commit is contained in:
2025-07-18 22:18:50 +02:00
parent 8934f73bb4
commit 6cc940f282

View File

@@ -56,7 +56,8 @@ async fn process_file(
let links_replaced = &replace_links(html_stripped); let links_replaced = &replace_links(html_stripped);
let name = get_file_name(&file); let name = get_file_name(&file);
let dir = file.path().parent().unwrap(); 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 = let github_link_added =
links_replaced.to_owned() + "\n" + name.as_str() + " Github: " + url.as_str(); links_replaced.to_owned() + "\n" + name.as_str() + " Github: " + url.as_str();