Return a file reference from the given path
(path: String)
| 264 | |
| 265 | /// Return a file reference from the given path |
| 266 | pub fn from_path(path: String) -> Result<Self> { |
| 267 | let size = std::fs::metadata(path.clone())?.len(); |
| 268 | Ok(Self::new(path, size)) |
| 269 | } |
| 270 | |
| 271 | /// Return the path of this partitioned file |
| 272 | pub fn path(&self) -> &Path { |