Use QDir.exists() rather than QFile::exists()