Nodes/comfyui-smart-lora-downloader/LoRA Directory Manager
ComfyUI Node

LoRA Directory Manager

Your LoRA folder is a mess — this node audits it for you

By LargeModGames·Created about a year ago·Updated 12 months ago· 6
LoRA Directory Manager
    • report
    actionlist_loras

    Six months of downloading workflows from CivitAI and your models/loras/ folder has gone from "a few nice LoRAs" to a graveyard of files you don't remember grabbing. LoRA Directory Manager is the janitor node of the comfyui-smart-lora-downloader pack - the only one with zero download logic. It doesn't fetch anything, needs no CivitAI token, and asks nothing of you except one input. It just tells you what's in your LoRA directory and flags problems worth your attention.

    What it actually does

    The node reads ComfyUI's configured LoRA folder (via ComfyUI's own folder system - wherever models/loras/ points for your install), filters to .safetensors, .ckpt, and .pt files, and runs one of three actions based on a single action dropdown:

    • list_loras - every LoRA in the folder with its size in MB. The "what did I even download" report.
    • check_directory - verifies the folder exists, is writable, and reports free disk space. The "why did my download fail" check.
    • cleanup_duplicates - finds files that share a base name with different extensions (e.g. my_lora.safetensors and my_lora.ckpt) and lists them as potential duplicates.

    All three write a single report string output, and the node is marked as an output node, so you just run it and read the text - no wiring anything downstream.

    The important caveat

    "Cleanup" is a strong word. It finds potential duplicates; it does not delete or move anything. You read the report and do the housekeeping yourself, because the duplicate check is only "same basename, different extension" - which is a genuinely rare way to accumulate duplicates. What you're far more likely to have is char_v1.safetensors and char_v2.safetensors sitting side by side, and this node won't flag those because the basenames differ. So it's a rough first pass, not a dedupe tool. Treat the output as a hint, not a verdict.

    Honestly, a terminal one-liner can do all of this. But if you're in the middle of a workflow and you want to know whether that LoRA you're about to wire in actually exists, or whether you have disk room for the download you're planning, it's one node drop instead of a tab switch. Thin utility, fine at what it does.

    Installing it

    Same install as the rest of the pack, and it's the easiest node in it:

    cd ComfyUI/custom_nodes
    git clone https://github.com/LargeModGames/comfyui-smart-lora-downloader
    

    then restart ComfyUI. Its only dependency is requests, which ComfyUI already ships. Note the README's own clone command references an old repo name (comfyui-lora-auto-downloader.git) - use the URL above or search "smart lora downloader" in ComfyUI Manager. No token, no API keys, no model downloads. That's the whole appeal.

    When you'd actually use it

    • You just ran a downloader node and want to confirm the file landed (and how big it is).
    • Your download keeps failing and you suspect a permissions or disk-space problem - check_directory will tell you in one run.
    • You're about to clean up the folder manually and want a list of the usual suspects.

    If the report says the directory isn't writable, that's also why every download in the pack is failing for you - fix the folder permissions and re-run. That's about the only troubleshooting this node needs. It's not exciting, it won't generate anything, but when you need to know what's in your LoRA folder, it's the honest answer.

    Categoryloaders/lora

    Inputs (1)

    NameTypeDefaultDescription
    actionCOMBOlist_loras3 options: list_loras, check_directory, cleanup_duplicates

    Outputs (1)

    NameTypeDescription
    reportSTRING