()
| 256 | } |
| 257 | |
| 258 | pub fn default_profile_root() -> Result<PathBuf> { |
| 259 | config::user_data_dir().ok_or_else(|| TraceDecayError::Config { |
| 260 | message: "could not resolve user profile data directory".to_string(), |
| 261 | }) |
| 262 | } |
| 263 | |
| 264 | pub fn resolve_layout_for_current_profile(project_root: &Path) -> Result<StoreLayout> { |
| 265 | match read_enrollment_marker(project_root)? { |