konstantin-paulus c1bc3f0085 Update package.json and README for consistency and clarity
Modified the "check" script in package.json to reference the correct "examples" directory. Updated the README to replace "video editor" with "media compositor" for improved accuracy and restructured some sentences for better readability. Removed outdated documentation files related to assets, CLI, composition, distribution, and getting started, streamlining the documentation for a more focused user experience.
2026-07-20 15:53:30 +02:00

1002 B

dapi asset tree

Prints the asset library of the open project as its folder tree: folders and assets interleaved in one array, each folder carrying its contents in children.

Input

  • --folder <id>: folder whose contents to list (optional; default the library root)
  • --depth <N>: max depth, positive integer (optional; default = full tree). --depth 1 yields just the direct entries of the listing root; a folder at the cutoff is listed without children (indistinguishable from a genuinely empty folder; raise the depth to tell them apart).

Output

JSON Lines, one per entry of the listing root (no output if the listing root is empty); each entry carries its own subtree in children:

AssetTree = Array<(Asset | Folder) & { children?: AssetTree }>   // one root entry per line

Folders are the entries with type folder. children is present only on folders with contents; assets never carry it.

Errors

Exits non-zero if --folder doesn't resolve to a folder.