Commit 07cf6c3f authored by Your Name's avatar Your Name

Fix: --list-cached-models now displays individual cached files

- Added code to print individual cached model files with sizes
- Previously only showed cache directory headers and summary
- Now shows each file with format: [cache_name] filename (size MB)
- Matches the format used by --remove-model command
parent 73c81b2f
......@@ -165,6 +165,11 @@ def main():
print("\nNo cached models found.")
sys.exit(0)
# Print individual files
for cache_name, filename, size in all_files:
size_mb = size / (1024 * 1024)
print(f" [{cache_name}] {filename} ({size_mb:.1f} MB)")
# Calculate totals
total_size = sum(size for _, _, size in all_files)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment