Get the inode for a file. Returns `None` if the file doesn't exist.
(&self, path: &str)
| 389 | /// |
| 390 | /// Returns `None` if the file doesn't exist. |
| 391 | pub fn get_inode(&self, path: &str) -> Option<Inode> { |
| 392 | let files = self.files.borrow(); |
| 393 | files.get(path).map(|f| f.inode) |
| 394 | } |
| 395 | |
| 396 | /// List all files (not directories) in the working copy. |
| 397 | /// |