summaryrefslogtreecommitdiff
path: root/crates/vcs/src/data/user.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-10-06 04:11:58 +0800
committer魏曹先生 <1992414357@qq.com>2025-10-06 04:11:58 +0800
commitee7cba690582b9c47e8c856bf0bd331eedda7908 (patch)
tree21218393cd14b4465296b15ad999fc89be97757c /crates/vcs/src/data/user.rs
parent03a5ff8a1629cde933120faf47963fcb59118261 (diff)
Remove old vcs directory after migration to vcs_data
- Delete entire crates/vcs directory and its contents - Remove test files and configuration from old structure - Complete transition to new vcs_data and vcs_actions architecture
Diffstat (limited to 'crates/vcs/src/data/user.rs')
-rw-r--r--crates/vcs/src/data/user.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/crates/vcs/src/data/user.rs b/crates/vcs/src/data/user.rs
deleted file mode 100644
index 0abd098..0000000
--- a/crates/vcs/src/data/user.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-use crate::current::current_doc_dir;
-use std::path::PathBuf;
-
-pub mod accounts;
-
-pub struct UserDirectory {
- local_path: PathBuf,
-}
-
-impl UserDirectory {
- /// Create a user ditectory struct from the current system's document directory
- pub fn current_doc_dir() -> Option<Self> {
- Some(UserDirectory {
- local_path: current_doc_dir()?,
- })
- }
-
- /// Create a user directory struct from a specified directory path
- /// Returns None if the directory does not exist
- pub fn from_path<P: Into<PathBuf>>(path: P) -> Option<Self> {
- let local_path = path.into();
- if local_path.exists() {
- Some(UserDirectory { local_path })
- } else {
- None
- }
- }
-}