tarlatan
    Preparing search index...

    Function ledgerDirOfTarget

    • The directory of target's ledger file: the part of its path before the last /, so the file's actual parent whatever the recorded file is named (owner finding F8, dogfood-2). The ledger path is absolute: the configured one is canonical, and a recorded binding whose ledger path is not absolute is refused when it is decoded (owner finding F11, format/target-binding.ts), so the result is never / for a bare file name. A command that writes the ledger prepares this directory before it opens the ledger (store-directory.ts).

      Parameters

      • target: {
            attributeAllowance: {
                rootLines: readonly [] | readonly ["*.wxw linguist-language=Rust"];
            };
            ledger: string;
            ownerCheckout: string;
            projectId: string & Brand<"ProjectId">;
            supervisor: { name: string; path: string };
        }
        • ReadonlyattributeAllowance: { rootLines: readonly [] | readonly ["*.wxw linguist-language=Rust"] }
        • Readonlyledger: string

          The ledger file, <ledgerDir>/ledger.sqlite, canonical.

        • ReadonlyownerCheckout: string
        • ReadonlyprojectId: string & Brand<"ProjectId">
        • Readonlysupervisor: { name: string; path: string }

      Returns string