diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-07-29 13:46:43 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-07-29 13:46:43 +0100 |
| commit | bd8adb9f0193f1482ca866b06cf133ff68fd9a8e (patch) | |
| tree | 8d29230c9821e0512c207e2415e682a997090d2e /src/paths.rs | |
| parent | f419a08d2861d76dce3d2a8206d6f1eb24bf1f2e (diff) | |
🔧refactor: remove types.rs
Diffstat (limited to 'src/paths.rs')
| -rw-r--r-- | src/paths.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/paths.rs b/src/paths.rs new file mode 100644 index 0000000..172cae6 --- /dev/null +++ b/src/paths.rs @@ -0,0 +1,14 @@ +use std::path::PathBuf; + +pub fn zap_rs_home() -> PathBuf { + let home = std::env::var("HOME").expect("HOME not set"); + PathBuf::from(home).join(".local/share/zap-rs") +} + +pub fn index_dir() -> PathBuf { + zap_rs_home().join("index") +} + +pub fn appimages_dir() -> PathBuf { + zap_rs_home().join("appimages") +} |
