Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
7
Task/Make-directory-path/Python/make-directory-path-2.py
Normal file
7
Task/Make-directory-path/Python/make-directory-path-2.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
def mkdirp(path):
|
||||
try:
|
||||
os.makedirs(path)
|
||||
except OSError as exc: # Python >2.5
|
||||
if exc.errno == errno.EEXIST and os.path.isdir(path):
|
||||
pass
|
||||
else: raise
|
||||
Loading…
Add table
Add a link
Reference in a new issue