|
@@ -77,7 +77,7 @@ def decryptFileAndProcess(encryptedFName):
|
77
|
77
|
def latestUserFile(searchDir, userID):
|
78
|
78
|
# search_dir = "/tmp/images/"
|
79
|
79
|
print("Searching dir %s for latest file of userID: %s ...." % (searchDir, userID))
|
80
|
|
- files = [f for f in glob.glob(searchDir + "/" + userID + "-*") if os.path.isfile(f)]
|
|
80
|
+ files = [f for f in glob.glob(searchDir + "/" + userID + "-*EncrypFile*") if os.path.isfile(f)]
|
81
|
81
|
return max(files, key = lambda x: os.path.getmtime(x))
|
82
|
82
|
|
83
|
83
|
|