check existence and create folder if non-existent
check_dir_create(path)
path
the same returned values for dir.create()
dir.create()
check_dir_create(tempdir())
Useful links