in tools/download_file.py [0:0]
def safe_mkdirs(d): if path.isdir(d): return try: makedirs(d) except OSError as err: if not path.isdir(d): raise err