We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
list_models()
1 parent 9b3023f commit 9e169dcCopy full SHA for 9e169dc
comfy_cli/command/models/models.py
@@ -394,6 +394,11 @@ def remove(
394
typer.echo("Deletion canceled.")
395
396
397
+def list_models(path: pathlib.Path) -> list:
398
+ """List all models in the specified directory."""
399
+ return [file for file in path.iterdir() if file.is_file()]
400
+
401
402
@app.command()
403
@tracking.track_command("model")
404
def list(
@@ -416,8 +421,3 @@ def list(
416
421
data = [(model.name, f"{model.stat().st_size // 1024} KB") for model in models]
417
422
column_names = ["Model Name", "Size"]
418
423
ui.display_table(data, column_names)
419
-
420
-def list_models(path: pathlib.Path) -> list:
- """List all models in the specified directory."""
- return [file for file in path.iterdir() if file.is_file()]
0 commit comments