Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. import fnmatch
  2. import os
  3.  
  4. for file in os.listdir("samples"):
  5. if fnmatch.fnmatch(file, "*.jpg"):
  6. print file
  7.  
  8. ## sample.jpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement