summaryrefslogtreecommitdiffstats
path: root/src/paths.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/paths.rs')
-rw-r--r--src/paths.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/paths.rs b/src/paths.rs
index be40658..b3f3e1d 100644
--- a/src/paths.rs
+++ b/src/paths.rs
@@ -4,6 +4,11 @@ use std::path::PathBuf;
use crate::fail::HResult;
+pub fn home_path() -> HResult<PathBuf> {
+ let home = dirs_2::home_dir()?;
+ Ok(home)
+}
+
pub fn hunter_path() -> HResult<PathBuf> {
let mut config_dir = dirs_2::config_dir()?;
config_dir.push("hunter/");