From 5e68c05cbfc34cbf616e6924773c1463dba8d1e3 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 25 Sep 2022 23:19:07 +0530 Subject: [PATCH] Fix blacklist checking logic Signed-off-by: baalajimaestro --- encrypt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encrypt.py b/encrypt.py index d10ec69..9a21981 100644 --- a/encrypt.py +++ b/encrypt.py @@ -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(