add filename to to the table in user metadata editor

This commit is contained in:
AUTOMATIC1111 2023-08-01 07:10:42 +03:00
parent 4b43480fe8
commit 2860c3be3e
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ class UserMetadataEditor:
stats = os.stat(filename)
params = [
('Filename: ', os.path.basename(filename)),
('File size: ', sysinfo.pretty_bytes(stats.st_size)),
('Modified: ', datetime.datetime.fromtimestamp(stats.st_mtime).strftime('%Y-%m-%d %H:%M')),
]