ใช้ os.makedirs(path, exist_ok=True) สร้างโฟลเดอร์ recursive อนุญาตให้ parent มีอยู่แล้ว
import os
os.makedirs('my_folder/another/folder', exist_ok=True)
ใช้ os.makedirs(path, exist_ok=True) สร้างโฟลเดอร์ recursive อนุญาตให้ parent มีอยู่แล้ว
import os
os.makedirs('my_folder/another/folder', exist_ok=True)