mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
Update files.ts
This commit is contained in:
@@ -6,7 +6,7 @@ import path from "path";
|
|||||||
import { logger } from "@app/lib/logger";
|
import { logger } from "@app/lib/logger";
|
||||||
|
|
||||||
const baseDir = path.join(os.tmpdir(), "infisical");
|
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) => {
|
export const createTemporaryDirectory = async (name: string) => {
|
||||||
const tempDirPath = path.join(baseDir, `${name}-${randomPath()}`);
|
const tempDirPath = path.join(baseDir, `${name}-${randomPath()}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user