티스토리 뷰

공부

[Python] files in dir

승가비 2022. 8. 5. 21:17
728x90
import glob
print(glob.glob("/home/adam/*"))

https://stackoverflow.com/questions/3207219/how-do-i-list-all-files-of-a-directory

 

How do I list all files of a directory?

How can I list all files of a directory in Python and add them to a list?

stackoverflow.com

 

728x90
댓글