Look up a file by name.
(&self, path: S)
| 57 | |
| 58 | /// Look up a file by name. |
| 59 | pub fn get_file<S: AsRef<Path>>(&self, path: S) -> Option<&'a File<'a>> { |
| 60 | self.get_entry(path).and_then(DirEntry::as_file) |
| 61 | } |
| 62 | |
| 63 | /// Look up a dir by name. |
| 64 | pub fn get_dir<S: AsRef<Path>>(&self, path: S) -> Option<&'a Dir<'a>> { |