6 lines
141 B
Python
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) |