Function archive_lp::extract_to

source ·
pub fn extract_to<P: AsRef<Path>>(src: P, des: P) -> Result<PathBuf, Error>where
    PathBuf: From<P>,
    P: Display + Copy,
Expand description

Extracts the archive to the destination folder.

Checks if the archive and folder exists and then extracts the archive into the folder. If the destination folder doesn’t exist then it attempts to create it.