Initial commit

This commit is contained in:
ladeng07
2022-04-12 14:29:48 +08:00
committed by ladeng07
parent febe17d539
commit b2c34886a4
5026 changed files with 806430 additions and 12 deletions
@@ -0,0 +1,7 @@
import os
def ensure_directory(path):
"""Ensure that the parent directory of `path` exists"""
dirname = os.path.dirname(path)
os.makedirs(dirname, exist_ok=True)