Skip to content

Commit

Permalink
Fix a bug that made creating directory fail
Browse files Browse the repository at this point in the history
  • Loading branch information
dialogflowchatbot committed Oct 27, 2024
1 parent 9c0acbf commit cb16d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/embedding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub(crate) fn search_idx_db(robot_id: &str, search_vector: Vector) -> Result<Vec
pub(crate) fn get_sqlite_path() -> std::path::PathBuf {
let p = Path::new(".").join("data").join("intentev");
if !p.exists() {
std::fs::create_dir(&p).expect("Create data directory failed.");
std::fs::create_dir_all(&p).expect("Create data directory failed.");
}
p.join("e.dat")
}
Expand Down

0 comments on commit cb16d00

Please sign in to comment.