Get the store directory path (~/.ix/store), creating it if needed
()
| 56 | |
| 57 | /// Get the store directory path (~/.ix/store), creating it if needed |
| 58 | fn store_dir() -> StoreResult<PathBuf> { |
| 59 | let home = Self::get_home_dir()?; |
| 60 | let path = home.join(".ix").join("store"); |
| 61 | if !path.exists() { |
| 62 | fs::create_dir_all(&path)?; |
| 63 | } |
| 64 | Ok(path) |
| 65 | } |
| 66 | |
| 67 | /// Get the full path for a given address, creating parent directories if needed |
| 68 | /// Path structure: store/XX/YY/ZZ/remaining_hex |