use io;
use fs;
use PathBuf;
use Path;
/// Extract a zip archive
/// Arguments: (zip file path, destination path, strip top level)
///
/// # Examples:
/// ```rust,ignore
/// use fspp::*;
///
/// let target_path = Path::new("folder1/folder2/folder3");
/// let zip_path = target_path.add_str("stuff.zip");
///
/// // If the "strip top level" argument is set to false:
/// // The archive::zip::extract() function keeps everything as is
/// // If the "strip top level" argument is set to true:
/// // The archive::zip::extract() function strips away the entry folder
/// let zip_host_path = target_path.add_str("stuff_unzipped");
///
/// archive::zip::extract(&zip_path, &zip_host_path, true).unwrap();
/// archive::zip::extract(&zip_path, &target_path, false).unwrap();
/// ```