Fix blacklist checking logic

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-09-25 23:19:07 +05:30
parent e662496374
commit 5e68c05cbf
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -55,7 +55,7 @@ for i in file_list:
if os.path.isdir(i):
rel_path = i.split(base_dir + "/")[1]
for j in BLACKLIST:
if rel_path in j:
if j in rel_path:
break
else:
os.mkdir(enc_path + "/" + rel_path)
@ -65,7 +65,7 @@ for i in file_list:
rel_path = i.split(base_dir + "/")[1]
if not os.path.isdir(i):
for j in BLACKLIST:
if rel_path in j:
if j in rel_path:
break
else:
process = subprocess.run(