fix url path
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user