Skip to content

Commit 138571d

Browse files
fix: append directory type annotation to internal files endpoint response (Comfy-Org#13078) (Comfy-Org#13305)
1 parent 3d816db commit 138571d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api_server/routes/internal/internal_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def is_visible_file(entry: os.DirEntry) -> bool:
6767
(entry for entry in os.scandir(directory) if is_visible_file(entry)),
6868
key=lambda entry: -entry.stat().st_mtime
6969
)
70-
return web.json_response([entry.name for entry in sorted_files], status=200)
70+
return web.json_response([f"{entry.name} [{directory_type}]" for entry in sorted_files], status=200)
7171

7272

7373
def get_app(self):

0 commit comments

Comments
 (0)