def update(directory, amount, latest):
	try:
		l = int(latest)
	except __HOLE__:
		print("  ERROR: incorrect value given for latest hash release.")
		exit()

	if amount == "all":
		# Downloads all md5 files
		for i in range(0,l):
			downloader(directory,i)
	elif amount == "missing":
		# Finds all md5 files not in a directory
		to_find = find_missing(directory, l)
		for i in to_find:
			downloader(directory,i)
	else:
		# Parses amount...
		to_find = parse_amount(amount)
		for i in to_find:
			downloader(directory,i)
dataset/ETHPy150Open AdamGreenhill/VirusShare-Search/VirusShare-Search.py/update