@n8n/n8n-benchmark
Version:
Cli for running benchmark tests for n8n
16 lines (12 loc) • 310 B
JavaScript
import path from 'path';
import { fs } from 'zx';
/**
* Creates the needed directories so the permissions get set correctly.
*/
export function setup({ runDir }) {
const neededDirs = ['n8n', 'postgres'];
for (const dir of neededDirs) {
fs.ensureDirSync(path.join(runDir, dir));
}
}