Skip to content

Commit

Permalink
use cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
oppiliappan committed Aug 16, 2019
1 parent 943e085 commit d74ac7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ fn main() {
// handle history storage
let eva_dirs = ProjectDirs::from("com", "NerdyPepper", "eva").unwrap();
let eva_data_dir = eva_dirs.data_dir();
let eva_cache_dir = eva_dirs.cache_dir();
let mut history_path = PathBuf::from(eva_data_dir);
let mut previous_ans_path = PathBuf::from(eva_data_dir);
let mut previous_ans_path = PathBuf::from(eva_cache_dir);

match create_dir_all(eva_data_dir) {
Ok(_) => {
history_path.push("history.txt");
Expand Down

0 comments on commit d74ac7e

Please sign in to comment.