code: func (s *ObjectStorage) Close() error {
  	var firstError error
  	if s.options.KeepDescriptors || s.options.MaxOpenDescriptors > 0 {
  		for _, packfile := range s.packfiles {
  			err := packfile.Close()
  			if firstError == nil && err != nil {
  				firstError = err
  			}
  		}
  	}
  
  	s.packfiles = nil
  	s.dir.Close()
  
  	return firstError
  }
docs: // Close closes all opened files.