embdgen.plugins.content_generator.SplitArchiveContentGenerator

class embdgen.plugins.content_generator.SplitArchiveContentGenerator.Split[source]

Bases: FilesContentProvider

Split for a SplitArchiveContentGenerator

name: str = ''

Name of this split

root: str

Root directory of this split in the archive

remove_root: bool = False

If set to true, the root directory of the split is removed from the remaining tree

base: ArchiveContent
property tmpDir: TemporaryDirectory
init(base: SplitArchiveContentGenerator, fakeroot: FakeRoot)[source]
prepare() None[source]

Prepare content

This should calculate the size of the content and generate any files / information required by the owning class.

property files: List[Path]
class embdgen.plugins.content_generator.SplitArchiveContentGenerator.SplitArchiveContentGenerator[source]

Bases: BaseContentGenerator, ArchiveContent

Split an archive into multiple parts

This can be used to create multiple content modules from a single archive. Each split can define up to one root directory. The content of that directory is moved to the split and the directory is kept as an empty directory (that can be used as a mountpoint later).

CONTENT_TYPE = 'split_archive'
archive: Path

Archive to be unpacked

remaining: str | None = None

Name of the remaining content

get_contents() Dict[str, BaseContent][source]
prepare() None[source]

Prepare content

This should calculate the size of the content and generate any files / information required by the owning class.

property splits: List[Split]

List of splits