/// Constructs a new reader from a file.  Validates the contents of blobfs at this point.
/// While the reader exists, a temporary directory containing the extracted blobfs image will
/// exist.  This directory is removed on Drop.
Constructs a new reader from a file.  Validates the contents of blobfs at this point.
While the reader exists, a temporary directory containing the extracted blobfs image will
exist.  This directory is removed on Drop.
Constructs a new reader from a file . Validates the contents of blobfs at this point . While the reader exists a temporary directory containing the extracted blobfs image will exist . This directory is removed on Drop .
pub fn new(tool_path: &std::path::Path, path: &std::path::Path) -> Result<Self> {
        let directory = tempfile::TempDir::new()?;
        export_blobfs(tool_path, path, directory.path())?;
        Ok(Self { directory })
    }
pub fn new ( tool_path : & std :: path :: Path , path : & std :: path :: Path ) -> Result < Self > { let directory = tempfile :: TempDir :: new ( ) ? ; export_blobfs ( tool_path , path , directory . path ( ) ) ? ; Ok ( Self { directory } ) }
Constructs a new reader from a file.
Constructs a new reader from a file .
tool_path
&std::path::Path
path
&std::path::Path