pub fn init<P: AsRef<Path>>(revfile: P) -> Result<Self> {
        let revfile = revfile.as_ref();
        let basedir = revfile
            .parent()
            .unwrap_or_else(|| Path::new("."))
            .to_path_buf();
        let lock = purgelock(&basedir).map_err(|e| ExtractError::Lock(basedir.clone(), e))?;
        let revision = fs::read_to_string(revfile)
            .map_err(|e| ExtractError::LoadSpec(revfile.to_owned(), e))?;
        Ok(Self {
            revision,
            threads: Self::default_threads(),
            basedir,
            lock,
            progress: ProgressBar::hidden(),
        })
    }
/// Creates new `Extractor` instance.
///
/// The revision specification is loaded from `revfile`. The data directory is assumed to be
/// the same directory as where revfile is located.
Creates new `Extractor` instance.
The revision specification is loaded from `revfile`. The data directory is assumed to be
the same directory as where revfile is located.
Creates new ` Extractor ` instance . The revision specification is loaded from ` revfile ` . The data directory is assumed to be the same directory as where revfile is located .
pub fn init<P: AsRef<Path>>(revfile: P) -> Result<Self> {
        let revfile = revfile.as_ref();
        let basedir = revfile
            .parent()
            .unwrap_or_else(|| Path::new("."))
            .to_path_buf();
        let lock = purgelock(&basedir).map_err(|e| ExtractError::Lock(basedir.clone(), e))?;
        let revision = fs::read_to_string(revfile)
            .map_err(|e| ExtractError::LoadSpec(revfile.to_owned(), e))?;
        Ok(Self {
            revision,
            threads: Self::default_threads(),
            basedir,
            lock,
            progress: ProgressBar::hidden(),
        })
    }
pub fn init < P : AsRef < Path > > ( revfile : P ) -> Result < Self > { let revfile = revfile . as_ref ( ) ; let basedir = revfile . parent ( ) . unwrap_or_else ( | | Path :: new ( " " ) ) . to_path_buf ( ) ; let lock = purgelock ( & basedir ) . map_err ( | e | ExtractError :: Lock ( basedir . clone ( ) , e ) ) ? ; let revision = fs :: read_to_string ( revfile ) . map_err ( | e | ExtractError :: LoadSpec ( revfile . to_owned ( ) , e ) ) ? ; Ok ( Self { revision , threads : Self :: default_threads ( ) , basedir , lock , progress : ProgressBar :: hidden ( ) , } ) }
Creates new `Extractor` instance.
Creates new ` Extractor ` instance .
revfile
P
revfile
P