Jak wypisać listę plików w folderze python

import os
source_dir = r"C:\Users\wilin\Downloads"
with os.scandir(source_dir) as entries:
    for entry in entries:
        print(entry.name)
Scroll to Top