mirror of
https://git.atakanozban.com/Songs2VID/songs2vid.git
synced 2026-11-14 21:29:49 +01:00
14 lines
372 B
TypeScript
14 lines
372 B
TypeScript
|
|
import path from "path";
|
||
|
|
|
||
|
|
export function getUploadDir(): string {
|
||
|
|
return process.env.UPLOAD_DIR || path.join(process.cwd(), "uploads");
|
||
|
|
}
|
||
|
|
|
||
|
|
export function getJobDir(userId: string, jobId: string): string {
|
||
|
|
return path.join(getUploadDir(), userId, jobId);
|
||
|
|
}
|
||
|
|
|
||
|
|
export function getWatermarkPath(): string {
|
||
|
|
return path.join(process.cwd(), "assets", "watermark.png");
|
||
|
|
}
|