pull/13475/head
parent
3d816db07f
commit
138571da95
|
|
@ -67,7 +67,7 @@ class InternalRoutes:
|
||||||
(entry for entry in os.scandir(directory) if is_visible_file(entry)),
|
(entry for entry in os.scandir(directory) if is_visible_file(entry)),
|
||||||
key=lambda entry: -entry.stat().st_mtime
|
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):
|
def get_app(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue