(path: &Path)
| 238 | } |
| 239 | |
| 240 | fn snapshot_path(path: &Path) -> BTreeMap<String, Vec<u8>> { |
| 241 | let mut snapshot = BTreeMap::new(); |
| 242 | if path.exists() { |
| 243 | collect_snapshot(path, path, &mut snapshot); |
| 244 | } |
| 245 | snapshot |
| 246 | } |
| 247 | |
| 248 | fn collect_snapshot(base: &Path, path: &Path, snapshot: &mut BTreeMap<String, Vec<u8>>) { |
| 249 | let metadata = fs::symlink_metadata(path) |
no test coverage detected