pub fn from_file(path: impl AsRef<Path>) -> RafsResult<RafsIoReader> {
        let f = File::open(&path).map_err(|e| {
            RafsError::ReadMetadata(e, path.as_ref().to_string_lossy().into_owned())
        })?;

        Ok(Box::new(f))
    }
/// Create a reader from a file path.
Create a reader from a file path.
Create a reader from a file path .
pub fn from_file(path: impl AsRef<Path>) -> RafsResult<RafsIoReader> {
        let f = File::open(&path).map_err(|e| {
            RafsError::ReadMetadata(e, path.as_ref().to_string_lossy().into_owned())
        })?;
        Ok(Box::new(f))
    }
pub fn from_file ( path : impl AsRef < Path > ) -> RafsResult < RafsIoReader > { let f = File :: open ( & path ) . map_err ( | e | { RafsError :: ReadMetadata ( e , path . as_ref ( ) . to_string_lossy ( ) . into_owned ( ) ) } ) ? ; Ok ( Box :: new ( f ) ) }
Create a reader from a file path.
Create a reader from a file path .
path
impl AsRef<Path>
path
impl AsRef<Path>