File size: 252 Bytes
46fcec6
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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()))
}