ITADN

Filename is null for single volume archives

#1331OpenKimi-Arthur 创建于 2026-05-24
K
Kimi-Arthurcommented
The following code should produce `example.zip, False`, but actually produces `, True`. ```cs using System; using System.Linq; using SharpCompress.Archives; namespace SharpCompressIssue; class Program { static void Main(string[] args) { var archive = ArchiveFactory.Open("example.zip"); foreach (var volume in archive.Volumes) { Console.WriteLine($"{volume.FileName}, {volume.FileName == null}"); } } } ``` Full example can be found [here](https://drive.google.com/file/d/1bVflQW9nAYNXx8n0VzT_v0GPzoMWemk6/view?usp=sharing).
0 条评论