(&self, path: &str)
| 530 | } |
| 531 | |
| 532 | fn modified_time(&self, path: &str) -> Result<SystemTime, Self::Error> { |
| 533 | let files = self.files.borrow(); |
| 534 | files |
| 535 | .get(path) |
| 536 | .map(|f| f.modified) |
| 537 | .ok_or_else(|| MemoryError::NotFound { |
| 538 | path: path.to_string(), |
| 539 | }) |
| 540 | } |
| 541 | |
| 542 | fn exists(&self, path: &str) -> bool { |
| 543 | self.files.borrow().contains_key(path) |