Nodes/Bjornulf_custom_nodes/๐Ÿ“ฅ Load Text From Bjornulf Folder
ComfyUI Node

๐Ÿ“ฅ Load Text From Bjornulf Folder

Load Text From Bjornulf Folder (Bjornulf_custom_nodes) โ€” ComfyUI Node Guide

By justUmenยทCreated 2 years agoยทUpdated about a year agoยท 545
๐Ÿ“ฅ Load Text From Bjornulf Folder
    • text
    • filename
    • full_path
    โ—„text_fileno_files_foundโ–บ

    This node only makes sense once you know it has a specific partner: Bjornulf's Save Text node. Save Text writes whatever text you give it to ComfyUI/Bjornulf/Text/, and this node reads back from exactly that same folder - pick a file from a dropdown, get its contents. Together they're a lightweight "saved snippets library": write a prompt fragment, a character description, a list of scene ideas once, and from then on you just pick it from a menu instead of retyping or re-pasting it.

    How it works

    There's no path to type here at all - that's the whole point of this node existing alongside the more general Load Text From Path. It scans Bjornulf/Text and populates a dropdown from what it finds, so once you've built up a small library of saved text files, reusing one is a two-click affair: open the dropdown, pick the file.

    Inputs and outputs

    One required input: text_file, an enum populated dynamically from the contents of the folder - if the folder is empty, it shows no_files_found and there's nothing to select. Three outputs: text (the file's contents), filename (just the name, useful for labeling or logging), and full_path (the complete path, handy if you want to feed it into another path-based node downstream rather than just reading the text).

    Installing it

    Comes with the rest of the pack - ComfyUI Manager, search "Bjornulf_custom_nodes," or cd ComfyUI/custom_nodes && git clone https://github.com/justUmen/Bjornulf_custom_nodes, restart. No extra dependency needed for this node specifically; it's a plain file-folder read.

    Common issues & troubleshooting

    The dropdown only updates when the node list refreshes - if you just saved a new file with the Save Text node and don't see it show up here yet, you likely need to refresh the node (in newer ComfyUI, right-click the node or use the refresh shortcut) rather than assume something's broken. The list is a snapshot taken when the node was created or last refreshed, not a live folder watch.

    If you're getting no_files_found and you're sure files exist, double check they actually landed in ComfyUI/Bjornulf/Text and not somewhere else - it's a specific folder the pack creates for this purpose, not your ComfyUI input/ directory or an arbitrary location you might have saved text to with a different tool. If you want to load a text file from anywhere else on disk, that's what Load Text From Path is for - this node deliberately only looks in one place.

    CategoryBjornulf

    Inputs (1)

    NameTypeDefaultDescription
    text_fileCOMBOno_files_found1 options: no_files_found

    Outputs (3)

    NameTypeDescription
    textSTRINGโ€”
    filenameSTRINGโ€”
    full_pathSTRINGโ€”