MCPcopy Create free account
hub / github.com/angular/angular / read_link

Method read_link

packages/compiler-cli/preprocessor/ng-analyze/src/fs.rs:628–637  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

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.

Callers 1

test_read_link_virtualFunction · 0.45

Calls 2

get_virtual_entryMethod · 0.80
NotFoundClass · 0.50

Tested by 1

test_read_link_virtualFunction · 0.36