Fix decryption process to skip files without valid suffixes
This commit is contained in:
parent
d9bd061210
commit
cf890e2d5a
@ -128,6 +128,7 @@ def decrypt_files(files, symmetric_key):
|
||||
original_file = file.with_suffix('')
|
||||
if len(original_file.suffixes) == 0:
|
||||
original_file = original_file.with_suffix('.ft')
|
||||
continue
|
||||
|
||||
try:
|
||||
with open(file, 'rb') as fin, open(original_file, 'wb') as fout:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user