diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-04-18 00:40:27 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-04-18 00:40:27 -0400 |
commit | 7445b3c5a15487e6fa5c97b17098cf5014e81a61 (patch) | |
tree | 5ad336a53b185e08376439dd86a67e2fff9f0755 /src/dirs.rs | |
parent | 538276f22eb75331aee2c5d7effcbf2d8ccc8988 (diff) | |
download | rbw-7445b3c5a15487e6fa5c97b17098cf5014e81a61.tar.gz rbw-7445b3c5a15487e6fa5c97b17098cf5014e81a61.zip |
keep daemon log files
Diffstat (limited to 'src/dirs.rs')
-rw-r--r-- | src/dirs.rs | 6 |
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() |