public Stream GetFileStream(string path) { foreach (var archive in archives) { if (archive.Reader.FileExists(path)) return archive.Reader.GetFileStream(path); } throw new InvalidDataException("File not found in any archive: " + path); }