MCPcopy Create free account
hub / github.com/code-pushup/cli / getFinalFilePath

Method getFinalFilePath

packages/utils/src/lib/wal-sharded.ts:300–308  ·  view source on GitHub ↗

* Generates a filename for the final merged output file. * Uses the groupId as the identifier in the final filename. * * Example with baseName "trace" and groupId "20240101-120000-000": * Filename: trace.20240101-120000-000.json * * Example with baseName "trace" and groupId "measur

()

Source from the content-addressed store, hash-verified

298 * @returns The filename for the final merged output file
299 */
300 getFinalFilePath() {
301 const groupIdDir = path.join(this.#dir, this.groupId);
302 const { baseName, finalExtension } = this.#format;
303
304 return path.join(
305 groupIdDir,
306 `${baseName}.${this.groupId}${finalExtension}`,
307 );
308 }
309
310 shard() {
311 this.assertActive();

Callers 2

finalizeMethod · 0.95
statsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected