MLLIF
a MLIR-based Language to Language Interoperability Flyover
Loading...
Searching...
No Matches
ZipExtension.cs
Go to the documentation of this file.
1using System.IO.Compression;
2
4
5public static class ZipExtension
6{
7 public static async Task ExtractAsync(this ZipArchive archive, string entry, string to)
8 {
9 await using var src = archive.GetEntry(entry)!.Open();
10 await using var dst = File.OpenWrite(Path.Combine(to, Path.GetFileName(entry)));
11 await src.CopyToAsync(dst);
12 }
13}
constexpr std::string Path
Definition annotation.h:30