python os checj jika path exsis

os.path.exists('path/to/folder')
Magnificent Moth