ai-tube-clap-exporter / src /core /files /getRandomDirectory.mts
jbilcke-hf's picture
jbilcke-hf HF staff
another step for the Stories Factory (mp4 generation)
46fcec6
raw
history blame
252 Bytes
import { tmpdir } from "node:os"
import { join } from "node:path"
import { mkdtemp } from "node:fs/promises"
import { v4 as uuidv4 } from "uuid"
export async function getRandomDirectory(): Promise<string> {
return mkdtemp(join(tmpdir(), uuidv4()))
}