Skip to content

Commit

Permalink
Merge pull request #61 from HEnquist/datatable
Browse files Browse the repository at this point in the history
Include file sizes
  • Loading branch information
HEnquist authored Apr 17, 2024
2 parents a8cf5ff + 00a0711 commit a25252b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/filemanagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
isabs,
commonpath,
getmtime,
getsize,
)
import logging
import traceback
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit a25252b

Please sign in to comment.