import os filelist=os.listdir(r'C:\Users\10839\Desktop\TEST') print(filelist)