swh.vault.cookers.directory module

class swh.vault.cookers.directory.DirectoryCooker(obj_type, obj_id, backend, storage, max_bundle_size=536870912)[source]

Bases: swh.vault.cookers.base.BaseVaultCooker

Cooker to create a directory bundle

CACHE_TYPE_KEY = 'directory'

Checks that the requested object exists and can be cooked.

Override this in the cooker implementation.


Implementation of the cooker. Yields chunks of the bundle bytes.

Override this with the cooker implementation.