Id based structure supporting Components only.

A components unique id will be used to form a path to store the data at. To avoid millions of entries in one directory each id is chunked into four prefix directories with the remainder used to name the file:


If the component has a defined filetype it will be added to the path:


Components that are children of container components will be placed inside the id structure of their parent:


However, sequence children will be named using their label as an index and a common prefix of ‘file.’:

get_resource_identifier(entity, context=None)[source]

Return a resource identifier for supplied entity.

context can be a mapping that supplies additional information.


Initialise structure.