Skip to content

Commit be77532

Browse files
Fixed data.txt.enc bug
1 parent dc91583 commit be77532

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import os.path
77
from os import listdir
88
from os.path import isfile, join
9+
import time
910

1011

1112
class Encryptor:
@@ -48,7 +49,7 @@ def getAllFiles(self):
4849
dirs = []
4950
for dirName, subdirList, fileList in os.walk(dir_path):
5051
for fname in fileList:
51-
if (fname != 'script.py' and fname != 'password.txt.enc'):
52+
if (fname != 'script.py' and fname != 'data.txt.enc'):
5253
dirs.append(dirName + "\\" + fname)
5354
return dirs
5455

@@ -110,6 +111,7 @@ def decrypt_all_files(self):
110111
f.close()
111112
enc.encrypt_file("data.txt")
112113
print("Please restart the program to complete the setup")
114+
time.sleep(15)
113115

114116

115117

0 commit comments

Comments
 (0)