ComfyUI > Nodes > ComfyUI-Addoor > 🌻 Any File List

ComfyUI Node: 🌻 Any File List

Class Name

AD_AnyFileList

Category
🌻 Addoor/Batch
Author
ADDOOR (Account age: 2884days)
Extension
ComfyUI-Addoor
Latest Updated
2025-01-24
Github Stars
0.03K

How to Install ComfyUI-Addoor

Install this extension via the ComfyUI Manager by searching for ComfyUI-Addoor
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Addoor in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🌻 Any File List Description

Streamline file management for AI artists by filtering, searching, and processing various file types efficiently.

🌻 Any File List:

The AD_AnyFileList node is designed to streamline the process of managing and processing files within a specified directory. It is particularly useful for AI artists who need to handle large batches of image and text files efficiently. This node allows you to filter files by type and extension, perform deep searches within directories, and control the number of files processed at a time. By organizing files into lists and providing a merged text output, it simplifies the task of file management, making it easier to integrate various file types into your creative workflows. The node's ability to handle both images and text files makes it versatile for projects that require multimedia inputs.

🌻 Any File List Input Parameters:

Directory

This parameter specifies the directory path where the files are located. It is crucial as it determines the source from which files will be processed. The default value is an empty string, indicating no directory is set initially.

Load_Cap

This integer parameter defines the maximum number of files to load and process. It helps manage resource usage by limiting the number of files handled at once. The default value is 100, with a minimum of 1 and a maximum of 1000.

Skip_Frame

This integer parameter allows you to skip a specified number of files at the beginning of the list. It is useful for batch processing when you want to start from a specific point in the file list. The default value is 0, with a minimum of 0 and a maximum of 100.

Filter_By

This parameter lets you filter files by type, with options including * (all files), images, and text. It helps narrow down the files to be processed based on their content type, making it easier to focus on specific file types.

Extension

This string parameter allows you to specify a particular file extension to filter by, such as .jpg or .txt. It provides an additional layer of filtering to ensure only files with the desired extension are processed. The default value is *, meaning all extensions are considered.

This boolean parameter determines whether the node should perform a deep search through subdirectories within the specified directory. Enabling this option allows for a comprehensive search, ensuring no files are missed. The default value is False.

seed

This integer parameter is used for randomization purposes, particularly when dealing with processes that require a random element. It ensures consistency in results when the same seed is used. The default value is 0, with a range from 0 to 0xffffffffffffffff.

🌻 Any File List Output Parameters:

Directory_Output

This output returns the directory path that was processed, confirming the source of the files.

Image_List

This output provides a list of images that were successfully loaded and processed. It is essential for workflows that involve image manipulation or analysis.

Text_List

This output contains a list of text contents from the processed files, useful for text-based projects or data extraction tasks.

File_Path_List

This output delivers a list of full file paths for the processed files, offering a clear reference to the file locations.

File_Name_List

This output gives a list of file names without extensions, which can be useful for organizing or referencing files by name.

File_Name_With_Extension_List

This output provides a list of file names with their extensions, offering a complete reference to the files processed.

Total_Files

This output indicates the total number of files processed, providing a quick summary of the node's activity.

Merged_Text

This output compiles all text content from the processed files into a single string, which is beneficial for creating a unified text document or analysis.

🌻 Any File List Usage Tips:

  • Use the Filter_By and Extension parameters to precisely target the files you need, reducing processing time and resource usage.
  • Enable Deep_Search if your files are organized in subdirectories to ensure all relevant files are included in the processing.
  • Adjust the Load_Cap and Skip_Frame parameters to manage large datasets effectively, allowing for batch processing without overwhelming your system.

🌻 Any File List Common Errors and Solutions:

Error loading image '<file_path>': <error_message>

  • Explanation: This error occurs when the node encounters an issue while trying to load an image file, possibly due to file corruption or unsupported format.
  • Solution: Verify the integrity and format of the image file. Ensure it is not corrupted and is in a supported format like .jpg, .png, etc.

Error reading file '<file_path>': <error_message>

  • Explanation: This error indicates a problem with reading a text file, which could be due to file encoding issues or file corruption.
  • Solution: Check the file for encoding compatibility, ensuring it is UTF-8 encoded. Also, verify that the file is not corrupted and is accessible.

🌻 Any File List Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Addoor
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.