diff --git a/backend/filemanagement.py b/backend/filemanagement.py index 3f5a80b..78b4df7 100644 --- a/backend/filemanagement.py +++ b/backend/filemanagement.py @@ -12,6 +12,7 @@ isabs, commonpath, getmtime, + getsize, ) import logging import traceback @@ -73,8 +74,9 @@ def list_of_files_in_directory(folder): ] files_list = map( lambda file: { - "name": (os.path.basename(file)), - "lastModified": (getmtime(file)), + "name": os.path.basename(file), + "lastModified": getmtime(file), + "size": getsize(file), }, files, )