Fix blacklist checking logic
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
e662496374
commit
5e68c05cbf
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue