Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fnmatch
- import os
- for file in os.listdir("samples"):
- if fnmatch.fnmatch(file, "*.jpg"):
- print file
- ## sample.jpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement