Update files.ts

This commit is contained in:
Daniel Hougaard
2025-04-11 23:52:14 +04:00
parent 4a9e24884d
commit 65f78c556f

View File

@@ -6,7 +6,7 @@ import path from "path";
import { logger } from "@app/lib/logger";
const baseDir = path.join(os.tmpdir(), "infisical");
const randomPath = () => `${crypto.randomBytes(64).toString("hex")}`;
const randomPath = () => `${crypto.randomBytes(32).toString("hex")}`;
export const createTemporaryDirectory = async (name: string) => {
const tempDirPath = path.join(baseDir, `${name}-${randomPath()}`);