Answers for "python get all files of type in folder"

1

python list all files in directory

import os
 arr = os.listdir()
 print(arr)
 
 >>> ['$RECYCLE.BIN', 'work.txt', '3ebooks.txt', 'documents']
Posted by: Guest on April-15-2021

Code answers related to "python get all files of type in folder"

Python Answers by Framework

Browse Popular Code Answers by Language