check_and_make_dir

lstchain.io.data_management.check_and_make_dir(dir)

Check if a directory exists or contains data before to makedir. If exists, query the user to remove its content.

Parameters:
dir: str

path to a directory