(&self, path: &Path)
| 212 | } |
| 213 | |
| 214 | fn exists_raw(&self, path: &Path) -> bool { |
| 215 | let in_virtual = { |
| 216 | let files = self.virtual_files.read().unwrap(); |
| 217 | self.get_virtual_file(path, &files).is_some() |
| 218 | }; |
| 219 | if in_virtual { |
| 220 | return true; |
| 221 | } |
| 222 | crate::perf::count(Counter::FsStatCalls, 1); |
| 223 | self.physical.exists(path) |
| 224 | } |
| 225 | |
| 226 | /// Attempt to resolve a file across configured `rootDirs`. |
| 227 | /// If the file's path matches a prefix of one root directory, we check if a virtual or physical |
no test coverage detected