Answers for "python get a list of photos in a directory"

2

python get all images in directory

import glob

for filename in glob.iglob(root_dir + '**/*.jpg', recursive=True):
    # Do something
Posted by: Guest on December-22-2020
0

python get list of files in directory

from os import listdir
file_list = listdir(folder_path)
Posted by: Guest on January-20-2021

Code answers related to "python get a list of photos in a directory"

Python Answers by Framework

Browse Popular Code Answers by Language