Commit 0485c1de authored by Yuxin Wu's avatar Yuxin Wu

fix permission requirements on TENSORSPACK_DATASET

parent 2c9c35d6
...@@ -7,8 +7,9 @@ import os, sys ...@@ -7,8 +7,9 @@ import os, sys
from six.moves import urllib from six.moves import urllib
def mkdir_p(dirname): def mkdir_p(dirname):
""" make a dir recursively, but do nothing if the dir exists"""
assert dirname is not None assert dirname is not None
if dirname == '': if dirname == '' or os.path.isdir(dirname):
return return
try: try:
os.makedirs(dirname) os.makedirs(dirname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment