synology_apm_repo.sdk.units.file_map_tree module

FileMapTreeProvider: a diagnostic fallback browsing axis straight off db/file_map, reached via Repository.file_map_tree() and usable even when catalog metadata is missing or unhelpful — e.g. apv-sample-3’s empty copy_meta_file. Building the child-index (see FileMapTreeProvider._index) costs one full-table scan of file_map, done once and cached for the provider’s lifetime — after that, children() is a plain dict lookup, not a rescan.

This exposes internal file_map paths directly and is therefore diagnostic-mode only — never shown in the default, end-user-facing tree.

class synology_apm_repo.sdk.units.file_map_tree.FileMapTreeProvider(repo)

Bases: object

UnitProvider that turns db/file_map’s path column — treated as /-separated segments — directly into a browsable tree, one leaf per row.

root()

Pure construction — no I/O, so this stays synchronous (see UnitProvider).

async children(node, offset=0, limit=None)
async unit(node)