summaryrefslogtreecommitdiffstats
path: root/src/paths.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/paths.rs')
-rw-r--r--src/paths.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/paths.rs b/src/paths.rs
index 8917756..8774597 100644
--- a/src/paths.rs
+++ b/src/paths.rs
@@ -9,6 +9,12 @@ pub fn home_path() -> HResult<PathBuf> {
Ok(home)
}
+pub fn ranger_path() -> HResult<PathBuf> {
+ let mut ranger_path = dirs_2::config_dir()?;
+ ranger_path.push("ranger/");
+ Ok(ranger_path)
+}
+
pub fn hunter_path() -> HResult<PathBuf> {
let mut hunter_path = dirs_2::config_dir()?;
hunter_path.push("hunter/");