IO-1998 LMS Zip Download.
This commit is contained in:
@@ -2,7 +2,7 @@ import fs from "fs-extra";
|
||||
|
||||
function ListableChecker(file: fs.Dirent) {
|
||||
if (file.name === "Thumbs.db") return false;
|
||||
return true;
|
||||
if (!/(^|\/)\.[^\/\.]/g.test(file.name)) return true;
|
||||
}
|
||||
|
||||
export default ListableChecker;
|
||||
|
||||
@@ -24,6 +24,9 @@ export const FolderPaths = {
|
||||
VendorsFolder,
|
||||
};
|
||||
|
||||
export function JobRelativeFilePath(jobid: string, filename: string) {
|
||||
return path.join(FolderPaths.Jobs, jobid, 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