/// Get absolute path to a file given a relative path. Checks to ensure that
/// the file exists, otherwise will return None
Get absolute path to a file given a relative path. Checks to ensure that
the file exists, otherwise will return None
Get absolute path to a file given a relative path . Checks to ensure that the file exists otherwise will return None
pub(crate) fn file_in_image(&self, relpath: impl AsRef<Path>) -> Option<PathBuf> {
        let path = self.path().join(relpath.as_ref());
        match path.exists() {
            true => Some(path),
            false => None,
        }
    }
pub ( crate ) fn file_in_image ( & self , relpath : impl AsRef < Path > ) -> Option < PathBuf > { let path = self . path ( ) . join ( relpath . as_ref ( ) ) ; match path . exists ( ) { true => Some ( path ) , false => None , } }
Get absolute path to a file given a relative path.
Get absolute path to a file given a relative path .
&self
relpath
impl AsRef<Path>