Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import os
  2. import shutil
  3. import fnmatch
  4.  
  5. source = os.listdir(r"\enterpriseAAAAAA")
  6. destination = os.listdir(r"\enterpriseREALAAA")
  7. set = {
  8. "AAA",
  9. "BBB",
  10. "CCC"
  11. }
  12.  
  13. for file in source:
  14. for x in set:
  15. if file.__contains__(str(x)):
  16. print(file)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement