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();