from pathlib import Path


def dir_exists(dirName):
	"""check if directory exists, if not create the directory"""
	path = Path(dirName)
	if not Path(dirName).is_dir():
		Path(dirName).mkdir()
	return Path(dirName).is_dir()