import fs from "fs"; // ... if (!fs.existsSync(folderpath)) { fs.mkdirSync(folderpath) // Create folder if it doesn't exist }
import fs from "fs"; // ... if (!fs.existsSync(folderpath)) { fs.mkdirSync(folderpath) // Create folder if it doesn't exist }