python os checj si ruta exsis

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