Function extract_disk_access

Source
pub fn extract_disk_access<T>(
    value: Result<T>,
    path: &Path,
) -> Result<Option<T>>
Expand description

Converts a disk access Result into a Result<Some>, where a NotFound error results in a None value. This is purely to reduce boilerplate code comparing NotFound errors against all other errors.