Files
heygen-com__hyperframes/scripts/catalog-preview-temp.ts
2026-08-05 05:28:03 +00:00

9 lines
330 B
TypeScript

import { mkdtempSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
/** Atomically allocate an owner-only preview directory under the OS temp root. */
export function createCatalogPreviewTempDir(itemName: string): string {
return mkdtempSync(join(tmpdir(), `hf-catalog-${itemName}-`));
}