import os # Make dir def make_dir(path_dir): path_dir = str(path_dir) try: if not os.path.exists(path_dir): os.makedirs(path_dir) print("Ready ('make_dir'). '{path_dir}'".format(path_dir=path_dir)) except Exception as e: print("Error while executing 'make_dir()'. {e}".format(e=e)) return path_dir