pub fn extract_disk_access<T>(
value: Result<T>,
path: &Path,
) -> Result<Option<T>>Expand description
Converts a disk access Result<T> into a Result<Some<T>>, where a ErrorKind::NotFound (or
ErrorKind::InvalidFilename) error results in a None value. This is purely to reduce
boilerplate code comparing ErrorKind::NotFound errors against all other errors.