Get the inode for a tracked file. Returns `None` if the file is not tracked. # Arguments `path` - Path to look up
(
&self,
path: P,
)
| 483 | /// |
| 484 | /// * `path` - Path to look up |
| 485 | pub fn get_file_inode<P: AsRef<Path>>( |
| 486 | &self, |
| 487 | path: P, |
| 488 | ) -> Result<Option<Inode>, RepositoryError> { |
| 489 | let normalized = normalize_path(path.as_ref()); |
| 490 | |
| 491 | let txn = self |
| 492 | .pristine |
| 493 | .read_txn() |
| 494 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 495 | |
| 496 | get_inode(&txn, &normalized).map_err(|e| RepositoryError::Database(e.to_string())) |
| 497 | } |
| 498 | |
| 499 | /// List all tracked files in the repository. |
| 500 | /// |