fix: append directory type annotation to internal files endpoint response (#13078)

This commit is contained in:
AbdulRehman 2026-04-06 13:42:05 +05:00
parent 4b1444fc7a
commit 35def5cada
No known key found for this signature in database

View File

@ -67,7 +67,7 @@ class InternalRoutes:
(entry for entry in os.scandir(directory) if is_visible_file(entry)),
key=lambda entry: -entry.stat().st_mtime
)
return web.json_response([entry.name for entry in sorted_files], status=200)
return web.json_response([f"{entry.name} [{directory_type}]" for entry in sorted_files], status=200)
def get_app(self):