Skip to content

Instantly share code, notes, and snippets.

@yeephycho
Created January 24, 2017 08:16
Show Gist options
  • Save yeephycho/ce697ba22fd9c8b4970abc730ac14d4c to your computer and use it in GitHub Desktop.
Save yeephycho/ce697ba22fd9c8b4970abc730ac14d4c to your computer and use it in GitHub Desktop.
Find all *.jpg images under a folder in python
import os
from glob import glob
filename_list = glob(os.path.join("./image_folder", "*.jpg"))
for filename in filename_list:
print filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment