Answers for "how to get all images names in floder python"

5

how to search for a specific file extension with python

import glob, os
os.chdir("/mydir")
for file in glob.glob("*.txt"):
    print(file)
Posted by: Guest on March-06-2020
7

list files in directory python

import os
print(os.listdir('/path/to/folder/to/list'))
Posted by: Guest on April-22-2020

Code answers related to "how to get all images names in floder python"

Python Answers by Framework

Browse Popular Code Answers by Language