How to check if folder exist and create it if it doesn't?
import os
from datetime import datetime
file_path = "F:/TEST--"
if os.path.exists(file_path):
os.rmdir(file_path)
os.makedirs(file_path + datetime.now().strftime('%Y-%m-%d'))
else:
os.makedirs(file_path + datetime.now().strftime('%Y-%m-%d'))