Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
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())) | |
} |