RosettaCodeData/Task/Make-directory-path/Python/make-directory-path-3.py

3 lines
55 B
Python

def mkdirp(path):
os.makedirs(path, exist_ok=True)