python - Listing of all files in directory? - Stack Overflow

PHOTO EMBED

Tue Dec 28 2021 07:49:53 GMT+0000 (Coordinated Universal Time)

Saved by [deleted user]

p = Path(r'C:\Users\akrio\Desktop\Test').glob('**/*')
files = [x for x in p if x.is_file()]
content_copyCOPY

https://stackoverflow.com/questions/39909655/listing-of-all-files-in-directory