Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import shutil
- import fnmatch
- source = os.listdir(r"\enterpriseAAAAAA")
- destination = os.listdir(r"\enterpriseREALAAA")
- set = {
- "AAA",
- "BBB",
- "CCC"
- }
- for file in source:
- for x in set:
- if file.__contains__(str(x)):
- print(file)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement