Guest User

Untitled

a guest
Jan 22nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import os
  2. for root, dirs, files in os.walk("myDir"):
  3. for file in files:
  4. if file.endswith(".jpg"):
  5. print(os.path.join(root, file))
  6.  
  7. import os
  8. for root, dirs, files in os.walk("myDir"):
  9. for file in files:
  10. if file.contains("string1" & "string2"):
  11. print(os.path.join(root, file))
Add Comment
Please, Sign In to add comment