diff options
author | rabite <rabite@posteo.de> | 2019-03-21 21:25:38 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-03-21 21:32:41 +0100 |
commit | e4a2749ee0671c7d112b0ab6cabb8e61f8c0f9c0 (patch) | |
tree | 2c35b741b40b8bc8c829a6b722fa79352304b2d5 /src/paths.rs | |
parent | 2ca81c123c4dad7b9944967a57d14fc76f067dc0 (diff) |
start stuff in the background
Diffstat (limited to 'src/paths.rs')
-rw-r--r-- | src/paths.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/paths.rs b/src/paths.rs index b3f3e1d..8917756 100644 --- a/src/paths.rs +++ b/src/paths.rs @@ -10,9 +10,15 @@ pub fn home_path() -> HResult<PathBuf> { } pub fn hunter_path() -> HResult<PathBuf> { - let mut config_dir = dirs_2::config_dir()?; - config_dir.push("hunter/"); - Ok(config_dir) + let mut hunter_path = dirs_2::config_dir()?; + hunter_path.push("hunter/"); + Ok(hunter_path) +} + +pub fn config_path() -> HResult<PathBuf> { + let mut config_path = hunter_path()?; + config_path.push("config"); + Ok(config_path) } pub fn bookmark_path() -> HResult<PathBuf> { |