Close closes the 7-zip file or volumes, rendering them unusable for I/O.
()
| 594 | |
| 595 | // Close closes the 7-zip file or volumes, rendering them unusable for I/O. |
| 596 | func (rc *ReadCloser) Close() error { |
| 597 | errs := make([]error, 0, len(rc.f)) |
| 598 | |
| 599 | for _, f := range rc.f { |
| 600 | errs = append(errs, f.Close()) |
| 601 | } |
| 602 | |
| 603 | err := errors.Join(errs...) |
| 604 | if err != nil { |
| 605 | err = fmt.Errorf("sevenzip: error closing: %w", err) |
| 606 | } |
| 607 | |
| 608 | return err |
| 609 | } |
| 610 | |
| 611 | type fileListEntry struct { |
| 612 | name string |