If `report_dir` is a path.py object (and if will be if you make the above change), then you can do
```python
if (report_dir / ".coverage").isfile:
```