68
74
parse.urlparse(url).scheme,
69
75
parse.urlparse(url).netloc,
76
84
if not os.path.exists(os.path.dirname(fn)):
77
85
os.makedirs(os.path.dirname(fn))
78
86
with open(fn, 'bw') as local_file:
82
90
def read_cr_file(fn, url, local_copy_fn=None):