pub fn find_raw_data_file(&self,filename:&str,archive_location:&str,source_url:&str) -> Result<PathBuf,MissingFile> {
        let expect = self.path.join(filename);
        if expect.exists() { return Ok(expect) }
        let expect = self.path.join(archive_location).join(filename);
        if expect.exists() { return Ok(expect) }
        Err(MissingFile{ file_name: filename.to_string(), where_to_get: source_url.to_string() })
    }
/// Find where a file is, looking first in the directory this implies (self.path/filename),
/// and secondly in self.path/archive_location/filename. If found in either it will
/// return it, otherwise it will return an error message recommending looking for it
/// in the given url.
Find where a file is, looking first in the directory this implies (self.path/filename),
and secondly in self.path/archive_location/filename. If found in either it will
return it, otherwise it will return an error message recommending looking for it
in the given url.
Find where a file is looking first in the directory this implies ( self . path / filename ) and secondly in self . path / archive_location / filename . If found in either it will return it otherwise it will return an error message recommending looking for it in the given url .
pub fn find_raw_data_file(&self,filename:&str,archive_location:&str,source_url:&str) -> Result<PathBuf,MissingFile> {
        let expect = self.path.join(filename);
        if expect.exists() { return Ok(expect) }
        let expect = self.path.join(archive_location).join(filename);
        if expect.exists() { return Ok(expect) }
        Err(MissingFile{ file_name: filename.to_string(), where_to_get: source_url.to_string() })
    }
pub fn find_raw_data_file ( & self , filename : & str , archive_location : & str , source_url : & str ) -> Result < PathBuf , MissingFile > { let expect = self . path . join ( filename ) ; if expect . exists ( ) { return Ok ( expect ) } let expect = self . path . join ( archive_location ) . join ( filename ) ; if expect . exists ( ) { return Ok ( expect ) } Err ( MissingFile { file_name : filename . to_string ( ) , where_to_get : source_url . to_string ( ) } ) }
Find where a file is, looking first in the directory this implies (self.path/filename),
and secondly in self.path/archive_location/filename.
Find where a file is looking first in the directory this implies ( self . path / filename ) and secondly in self . path / archive_location / filename .
&self
filename
&str
archive_location
&str
source_url
&str
&self
filename
&str
archive_location
&str
source_url
&str