Created
January 24, 2017 08:16
-
-
Save yeephycho/ce697ba22fd9c8b4970abc730ac14d4c to your computer and use it in GitHub Desktop.
Find all *.jpg images under a folder in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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