| 626 | } |
| 627 | |
| 628 | fn read_link(&self, path: &Path) -> std::result::Result<PathBuf, ResolveError> { |
| 629 | // Virtual filesystem doesn't support symlinks; if a virtual file exists here, it's not a symlink. |
| 630 | if self.get_virtual_entry(path).is_some() { |
| 631 | return Err(ResolveError::NotFound(path.to_string_lossy().into_owned())); |
| 632 | } |
| 633 | |
| 634 | self.physical |
| 635 | .read_link(path) |
| 636 | .map_err(|_| ResolveError::NotFound(path.to_string_lossy().into_owned())) |
| 637 | } |
| 638 | |
| 639 | fn canonicalize(&self, path: &Path) -> Result<PathBuf> { |
| 640 | // For virtual files, canonicalize purely by path normalization. |