/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def ensure_dir(f): d = os.path.dirname(f) if not os.path.exists(d): os.makedirs(d)