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
from six.moves import urllib
def mkdir_p(dirname):
""" make a dir recursively, but do nothing if the dir exists"""
assert dirname is not None
if dirname == '':
if dirname == '' or os.path.isdir(dirname):
return
try:
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