make a path also if not exist code example
Example 1: python check if path does not exist
import os
if not os.path.exists('my_folder'):
os.makedirs('my_folder')
Example 2: node if path exists
const fs = require("fs"); // Or `import fs from "fs";` with ESM
if (fs.existsSync(path)) {
// Do something
}