if check_file is not None and os.path.isfile(os.path.join(directory, check_file)):
return
if not os.path.isdir(directory):
os.makedirs(directory)
for url in urls:
filename = get_filename_from_url(url)
full_path = os.path.join(directory, filename)
with tqdm(unit="B", unit_scale=True, miniters=1, desc=filename) as t:
After Change
Returns:
None:
check_file = None if check_file is None else os.path.join(directory, check_file)
if check_file is None or not os.path.isfile(check_file):
for file_url in file_urls:
compressed_filename = download(file_url, directory)
maybe_extract(compressed_filename, directory)