iter_all_fileinfos#

barecat.Index.iter_all_fileinfos(order=Order.ANY, bufsize=None)[source]#

Iterate over all file info objects in the index.

Parameters:
  • order (barecat.core.types.Order) – Order in which to iterate over the files. The default ANY uses SQLite’s natural rowid order, which is typically address order (shard, offset) if the archive was built by linear insertion. ANY also streams results immediately, while explicit ordering waits for a full sort before returning the first row.

  • bufsize (Optional[int]) – Buffer size for fetching rows.

Returns:

An iterator over the file info objects.

Return type:

Iterator[barecat.core.types.BarecatFileInfo]