|
|
|
|
77
|
def latestUserFile(searchDir, userID):
|
77
|
def latestUserFile(searchDir, userID):
|
78
|
# search_dir = "/tmp/images/"
|
78
|
# search_dir = "/tmp/images/"
|
79
|
print("Searching dir %s for latest file of userID: %s ...." % (searchDir, userID))
|
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
|
return max(files, key = lambda x: os.path.getmtime(x))
|
81
|
return max(files, key = lambda x: os.path.getmtime(x))
|
82
|
|
82
|
|
83
|
|
83
|
|