IO-2221 IO-2323 Correct Download/Delete/Move functions
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import fs = require("fs-extra");
|
||||
import path, { resolve } from "path";
|
||||
import dotenv from "dotenv";
|
||||
import os from "os";
|
||||
import path, { resolve } from "path";
|
||||
import { logger } from "../server";
|
||||
|
||||
dotenv.config({
|
||||
@@ -31,6 +31,9 @@ export const AssetPaths = {
|
||||
export function JobRelativeFilePath(jobid: string, filename: string) {
|
||||
return path.join(FolderPaths.Jobs, jobid, filename);
|
||||
}
|
||||
export function BillsRelativeFilePath(jobid: string, filename: string) {
|
||||
return path.join(FolderPaths.Jobs, jobid, FolderPaths.BillsSubDir, filename);
|
||||
}
|
||||
export default function InitServer() {
|
||||
logger.info(`Ensuring Root media path exists: ${FolderPaths.Root}`);
|
||||
fs.ensureDirSync(FolderPaths.Root);
|
||||
|
||||
Reference in New Issue
Block a user