Get the modification time of a file.
(&self, path: &str)
| 118 | |
| 119 | /// Get the modification time of a file. |
| 120 | fn modified_time(&self, path: &str) -> Result<SystemTime, Self::Error> { |
| 121 | let abs_path = self.resolve_path(path)?; |
| 122 | let metadata = fs::metadata(&abs_path)?; |
| 123 | metadata.modified() |
| 124 | } |
| 125 | |
| 126 | /// Check if a path exists. |
| 127 | fn exists(&self, path: &str) -> bool { |