cvsa/ml/lab/utils/cleanTempDir.py
alikia2x 636c5e25cb
ref: move ML stuff
add: .idea to VCS, the refactor guide
2025-03-29 14:13:15 +08:00

6 lines
141 B
Python

import os
import shutil
def cleanTempDir(dir_path):
shutil.rmtree(dir_path, ignore_errors=True)
os.makedirs(dir_path, exist_ok=True)