(path: &Path, workspace_storage_dir: &Path)
| 297 | } |
| 298 | |
| 299 | fn transcript_location_path(path: &Path, workspace_storage_dir: &Path) -> Option<PathBuf> { |
| 300 | if let Some(workspace) = workspace_from_sessions_path(path) { |
| 301 | return Some(workspace); |
| 302 | } |
| 303 | let hash = workspace_hash_from_path(path)?; |
| 304 | workspace_path_from_hash(workspace_storage_dir, &hash) |
| 305 | } |
| 306 | |
| 307 | fn workspace_from_sessions_path(path: &Path) -> Option<PathBuf> { |
| 308 | let components = path.components().collect::<Vec<_>>(); |
no test coverage detected