aboutsummaryrefslogtreecommitdiffstats
path: root/src/dirs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirs.rs')
-rw-r--r--src/dirs.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dirs.rs b/src/dirs.rs
index 3eb5804..fe610a7 100644
--- a/src/dirs.rs
+++ b/src/dirs.rs
@@ -11,6 +11,12 @@ pub fn cache_dir() -> std::path::PathBuf {
}
#[must_use]
+pub fn data_dir() -> std::path::PathBuf {
+ let project_dirs = directories::ProjectDirs::from("", "", "rbw").unwrap();
+ project_dirs.data_dir().to_path_buf()
+}
+
+#[must_use]
pub fn runtime_dir() -> std::path::PathBuf {
let project_dirs = directories::ProjectDirs::from("", "", "rbw").unwrap();
project_dirs.runtime_dir().unwrap().to_path_buf()