radicle: Change `TryFrom` for `radicle::profile::Home` to `Home::load`
Instead of creating missing directories in the TryFrom<PathBuf> for Home, this commit will return Errors when there are issues with the
folder structure.
radicle: Add a load method to radicle::profile::Home
Home::new always creates the missing subdirectories, in some cases
where we only want a valid Home we need to fail and know that there
isn’t a valid radicle::profile::Home at a specific path.
1 file changed
+50
-9
ff85c74e
→
9dbbb01d
modified crates/radicle/src/profile.rs
@@ -536,14 +536,6 @@ pub struct Home {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -565,7 +557,7 @@ impl Home {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -574,6 +566,55 @@ impl Home {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|