Exemplo n.º 1
0
func ExportAllEntryReceipts(dbo interfaces.DBOverlay) error {
	entryIDs, err := dbo.FetchAllEntryIDs()
	if err != nil {
		return err
	}
	for i, entryID := range entryIDs {
		err = ExportEntryReceipt(entryID.String(), dbo)
		if err != nil {
			if err.Error() != "dirBlockInfo not found" {
				return err
			} else {
				fmt.Printf("dirBlockInfo not found for entry %v/%v - %v\n", i, len(entryIDs), entryID)
			}
		}
	}
	return nil
}