summaryrefslogtreecommitdiff
path: root/crates/env/src/current.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/env/src/current.rs')
-rw-r--r--crates/env/src/current.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/env/src/current.rs b/crates/env/src/current.rs
index efa4117..97b5058 100644
--- a/crates/env/src/current.rs
+++ b/crates/env/src/current.rs
@@ -71,3 +71,8 @@ pub fn find_local_path(path: impl Into<PathBuf>) -> Option<PathBuf> {
None
}
+
+/// Get the system's document directory and join with .just_enough_vcs
+pub fn current_doc_dir() -> Option<PathBuf> {
+ dirs::document_dir().map(|path| path.join(".just_enough_vcs"))
+}