Open PedroBatistop opened 3 years ago
You might have to mkdir that path. however Google Cloud Functions wont allow it. so im wondering if this cant be used with gcf
async function mkdir(path: string = './node_modules/webp-converter/temp') {
try {
await fs.promises.access(path);
console.log(`Directory ${path} already exists.`);
} catch (err) {
await fs.promises.mkdir(path);
console.log(`Directory ${path} created successfully!`);
}
return true;
}