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

PHOTO EMBED

Wed Jan 26 2022 05:38:54 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