replace with `os.stat()`, `os.access()` or `os.exists()`.