const fs = require('fs');
const path = require('path');

const STORAGE_ROOT = '/mnt/webdata/storage';
const UPLOADS_DIR = path.join(STORAGE_ROOT, 'uploads');
const RESULTS_DIR = path.join(STORAGE_ROOT, 'results');

// Ensure dirs exist
for (const dir of [UPLOADS_DIR, RESULTS_DIR]) {
  if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
}

module.exports = { STORAGE_ROOT, UPLOADS_DIR, RESULTS_DIR };
