def extension_to_str(path):
	"""
	Pathlib represents file extensions as lists of suffixes starting with a
	'.'. This method concatenates the suffixes that make the extension of the
	given path.

	Args:
		path (pathlib.Path): the path whose extension is needed

	Returns:
		str: the path's extension as one string
	"""
	return "".join(path.suffixes)