i have a bunch of zip files in a directory and would like to get notified if one of them is missing .
Example code:
a = ['pattern1.zip', 'pattern2.zip', 'pattern3.zip']
b = []
for root,dirs,files in os.walk(some_path):
for i in files:
if i.endswith(('pattern1.zip', 'pattern2.zip', 'pattern3.zip')):
b.append(i)
Output: b = ['test-pattern1.zip', 'test-pattern2.zip', 'test-pattern3.zip']
would like to match the contents of 'b' with 'a' and check if any of the zip files are missing