Closed arichardson closed 4 years ago
Path().glob("docker-compose.yml") returns a generator that is always a true value in if conditions (even if the list that it returns is emtpy). Fix this by using Path("docker-compose.yml").exists().
Path("docker-compose.yml").exists()
Thanks @arichardson !
Path().glob("docker-compose.yml") returns a generator that is always a true value in if conditions (even if the list that it returns is emtpy). Fix this by using
Path("docker-compose.yml").exists()
.