/// Generate the path relative to original rootfs.
/// For example:
/// `/absolute/path/to/rootfs/file` after converting `/file`
Generate the path relative to original rootfs.
Generate the path relative to original rootfs .
pub fn rootfs(&self) -> PathBuf {
        if let Ok(rootfs) = self.path.strip_prefix(&self.source) {
            Path::new("/").join(rootfs)
        } else {
            // Compatible with path `/`
            self.path.clone()
        }
    }
pub fn rootfs ( & self ) -> PathBuf { if let Ok ( rootfs ) = self . path . strip_prefix ( & self . source ) { Path :: new ( " " ) . join ( rootfs ) } else { // Compatible with path `/` self . path . clone ( ) } }
Generate the path relative to original rootfs.
Generate the path relative to original rootfs .
&self