try changing to latest as base instead

This commit is contained in:
Pakin 2025-09-10 14:54:54 +07:00
parent 0cf5f63bd0
commit 2cd66711d6
2 changed files with 27 additions and 104 deletions

View file

@ -38,9 +38,9 @@ pub fn get_config() -> HashMap<String, String> {
}
pub fn create_recipe_model_from_file(path: String) -> models::recipe::Recipe {
println!("create_recipe_model_from_file: {}", path);
// println!("create_recipe_model_from_file: {}", path);
let mut file = File::open(path).unwrap();
println!("check file: {}", file.metadata().unwrap().is_file());
// println!("check file: {}", file.metadata().unwrap().is_file());
let mut data = String::new();
file.read_to_string(&mut data).unwrap();
@ -75,7 +75,7 @@ pub fn get_all_files_in_directory(directory_path: &str) -> Vec<String> {
let path = entry.path();
if path.is_file() {
let npath = path.as_os_str().to_str().unwrap().to_string();
println!("pushed {}", npath);
// println!("pushed {}", npath);
files.push(npath);
}
}