Dapatkan Daftar File Endswith Python

lstJson = [f for f in os.listdir(str(self.pathJson)) if f.endswith('.json')]
        return lstJson
Spotless Swan