def md5_from_path(path):
	"""Returns an hex repr of the md5sum of the file content path points to.
	On IOError returns '<unable to read file>'.
	"""
	try:
		f = open(path)
		m = md5.new()
		while True:
			b = f.read(262144)
			if not b:
				break
			m.update(b)
		f.close()
		return m.hexdigest()
	except IOError:
		return '<unable to read file>'
Returns an hex repr of the md5sum of the file content path points to.
	On IOError returns '<unable to read file>'.
	
recipes/Python/552739_Mixing_features_tree_md5sum__treemd5_/recipe-552739.py