MCPcopy Create free account
hub / github.com/bodgit/sevenzip / Close

Method Close

reader.go:596–609  ·  view source on GitHub ↗

Close closes the 7-zip file or volumes, rendering them unusable for I/O.

()

Source from the content-addressed store, hash-verified

594
595// Close closes the 7-zip file or volumes, rendering them unusable for I/O.
596func (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
611type fileListEntry struct {
612 name string

Callers 2

extractArchiveFunction · 0.95

Calls 1

CloseMethod · 0.45

Tested by 2

extractArchiveFunction · 0.76