Skip to content

hyperion.adapters.storage.filesystem

hyperion.adapters.storage.filesystem

Filesystem :class:StoragePort adapter (lite -- restores local-path Catalog).

Keys are interpreted as POSIX-style paths relative to a single root directory. This is the adapter that makes Catalog(storage=FilesystemStorage(...)) possible once S5 inverts Catalog onto :class:StoragePort.

FilesystemStorage

FilesystemStorage(root)

A :class:StoragePort backed by a directory tree under root.

Source code in hyperion/adapters/storage/filesystem.py
def __init__(self, root: str | Path) -> None:
    self._root = Path(root).resolve()