[Python] mkdir -p
import os
def mkdirp(dirpath):
if not os.path.exists(dirpath):
os.makedirs(dirpath)
Tested on: Ubuntu Linux 15.10, Python 2.7.10.
References:
[1] | python mkdir p |
[2] | mkdir -p functionality in Python - Stack Overflow |
import os
def mkdirp(dirpath):
if not os.path.exists(dirpath):
os.makedirs(dirpath)
Tested on: Ubuntu Linux 15.10, Python 2.7.10.
References:
[1] | python mkdir p |
[2] | mkdir -p functionality in Python - Stack Overflow |