Nodes/Skycoder Tools/ℹ️ Directory Image Info
ComfyUI Node

ℹ️ Directory Image Info

A quick peek into a folder of images before you load anything

By skycoder182·Created about a year ago·Updated about a year ago· 1
ℹ️ Directory Image Info
    • info
    • count
    directory_path

    Directory Image Info is the reconnaissance half of Skycoder Tools' folder-pair: give it a path and it scans the directory, counts the image files, and shows you the first five names in a display window. No tensors, no model calls - just a fast "is this folder actually full of images, and what are they called" answer. It's the node you run before you trust the folder loader not to blow up on you.

    It pairs deliberately with the pack's Directory Image Loader, which pulls the Nth image out of a folder by index. The problem with index-based loading is that you have no idea what index 0 points to until you look. This node is that look: check the folder has images, see the sorted list, confirm the index range you're about to use is valid. In a batch or automation context it's a cheap dry-run check before you commit a run to a folder.

    How it works

    Nothing clever under the hood, which is exactly what you want from a utility node: it lists the directory, keeps only files with an image extension (.jpg, .jpeg, .png, .bmp, .tiff, .tif, .webp, .gif), sorts them alphabetically the same way the loader does, and counts. The human-readable summary and the count both come out of that one scan. It does not recurse into subfolders - just the top level of the path you give it.

    Inputs and outputs

    • directory_path (STRING) - the folder to inspect. You type or paste the absolute path.
    • info (STRING) - a summary like "found N images" plus the first five sorted filenames. This node is an output/display node, so that text shows up in a result panel on its own.
    • count (INT) - the total number of image files, and the one output you can actually wire somewhere else, e.g. to sanity-check a loop or an index.

    Installing it

    Part of the Skycoder Tools pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/skycoder182/comfyui-skycoder-tools.git
    # then restart ComfyUI
    

    Or via ComfyUI Manager → "Install Custom Nodes" → search "Skycoder Tools" → Install → restart. No models, no extra dependencies beyond what ComfyUI already has.

    Common issues

    Two things to know. First, a bad or missing path doesn't crash the graph - it returns count 0 and an error-ish message in the info string, which is graceful but easy to miss if you only wired the count output. Second, the author is German-speaking and the status strings are in German ("Gefunden: X Bilder" is "Found X images"). It's cosmetic, but it surprises people the first time. And keep the non-recursive limitation in mind: a folder with images nested one level down will report zero. Use it to check the exact folder you're about to load from.

    Categoryimage/io

    Inputs (1)

    NameTypeDefaultDescription
    directory_pathSTRING

    Outputs (2)

    NameTypeDescription
    infoSTRING
    countINT