Skip to content

managed_dir

managed_dir #

ManagedDir — an opaque directory value a recipe holds whole; analysis-only.

ManagedDir #

Bases: DirScalar

A directory a recipe holds without describing its contents; its value is the path.

Analysis-only: never part of a procedure or target schema, no platform mirror.

work = cg.ManagedDir.new()
work.stage(image, "images/0.jpg")
work.exec(["colmap", "automatic_reconstructor", "--workspace_path", "."])
return work / "sparse"
Source code in capturegraph-lib/capturegraph/types/special/managed_dir.py
class ManagedDir(DirScalar, name="managed_dir"):
    """A directory a recipe holds without describing its contents; its value is the path.

    Analysis-only: never part of a procedure or target schema, no platform mirror.

    ```python
    work = cg.ManagedDir.new()
    work.stage(image, "images/0.jpg")
    work.exec(["colmap", "automatic_reconstructor", "--workspace_path", "."])
    return work / "sparse"
    ```
    """

    __slots__ = ()

    analysis_only = True