import os from app.config import Config def ensure_upload_folder(): if not os.path.exists(Config.UPLOAD_FOLDER): os.makedirs(Config.UPLOAD_FOLDER)