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(