If you have already downloaded and tried to “install” a wallet.dat from an open index, follow these steps immediately:

def is_wallet_file(path: Path) -> bool: return path.is_file() and path.name.lower() == "wallet.dat"