chat1
for index, file in enumerate(files, start=1):
mod_time = file.stat().st_mtime
formatted_time = time.strftime('%Y-%m-%d, %H:%M:%S', time.localtime(mod_time))
print(f"{index}. {file.name} (modified: {formatted_time})")
for index, file in enumerate(files, start=1):
mod_time = file.stat().st_mtime
formatted_time = time.strftime('%Y-%m-%d, %H:%M:%S', time.localtime(mod_time))
print(f"{index}. {file.name} (modified: {formatted_time})")