def file_size_formatted(file_size):
	"""
	Format file sizes for a humans beings.
	http://stackoverflow.com/questions/1094841/reusable-library-to-get-human-readable-version-of-file-size
	"""
	for data_unit in ['bytes', 'KB', 'MB', 'GB']:
		if file_size < 1024.0 and file_size > -1024.0:
			return "%3.1f %s" % (file_size, data_unit)
		file_size /= 1024.0
	return "%3.1f %s" % (file_size, 'TB')