/// <summary> /// Unzips all files in the path. /// </summary> /// <param name="path">The zip files.</param> /// <param name="target">The directory where the files must be unzipped.</param> /// <returns>The uncompressed files and folders.</returns> public static Path Unzip(this Path path, Path target) { path.Open((s, p) => target.ForEach(t => new ZipArchive(s, ZipArchiveMode.Read).ExtractToDirectory(t.FullPath))); return(target); }