get_last_file#

barecat.Index.get_last_file()[source]#

Return the last file in the index, i.e., the one with the highest offset in the last shard (shard with largest numerical ID).

Returns:

The file info object.

Raises:

LookupError – If the index is empty.