ComfyUI > Nodes > TrentNodes > List Directory Files

ComfyUI Node: List Directory Files

Class Name

FileListNode

Category
Trent/Utilities
Author
TrentHunter82 (Account age: 0days)
Extension
TrentNodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install TrentNodes

Install this extension via the ComfyUI Manager by searching for TrentNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter TrentNodes 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

List Directory Files Description

FileListNode lists all files in a directory, aiding file management and content verification.

List Directory Files:

The FileListNode is designed to help you easily list all files within a specified directory, providing a straightforward way to visualize the contents of a folder. This node is particularly useful for managing and organizing files, as it allows you to see the results of file operations, such as collision handling, in a clear and concise manner. By leveraging this node, you can quickly obtain a list of files, which can be beneficial for tasks that require file management or when you need to verify the contents of a directory after performing operations like file transfers or renaming.

List Directory Files Input Parameters:

directory_path

The directory_path parameter is a required input that specifies the path to the directory whose files you want to list. This parameter accepts a string value, which should be the full path to the directory. It is important to ensure that the path is correctly specified to avoid errors. The default value is an empty string, and it does not support multiline input. This parameter is crucial as it determines the directory from which the files will be listed.

show_full_paths

The show_full_paths parameter is a boolean input that determines whether the full paths of the files should be displayed in the output. By default, this parameter is set to False, meaning that only the file names will be listed. If set to True, the node will output the complete file paths, which can be useful if you need to know the exact location of each file within the directory. This parameter allows you to customize the level of detail in the output according to your needs.

List Directory Files Output Parameters:

file_list

The file_list output parameter provides a string representation of the files found in the specified directory. Depending on the show_full_paths input parameter, this output will either contain just the file names or the full paths of the files. This output is essential for verifying the contents of a directory and can be used in subsequent operations that require knowledge of the files present in a specific location.

List Directory Files Usage Tips:

  • Ensure that the directory_path is correctly specified to avoid errors related to invalid paths. Double-check the path for typos or incorrect directory names.
  • Use the show_full_paths parameter to toggle between displaying just file names or full paths, depending on your needs. This can help you manage files more effectively by providing the level of detail you require.

List Directory Files Common Errors and Solutions:

Invalid directory path

  • Explanation: This error occurs when the specified directory_path does not exist or is incorrectly formatted.
  • Solution: Verify that the directory path is correct and that the directory exists. Ensure there are no typos and that the path is accessible.

Permission denied

  • Explanation: This error happens when the node does not have the necessary permissions to access the specified directory.
  • Solution: Check the permissions of the directory and ensure that the node has the appropriate access rights. You may need to adjust the permissions or run the node with elevated privileges.

Empty directory

  • Explanation: This error indicates that the specified directory does not contain any files.
  • Solution: Confirm that the directory is not empty and that files are present. If the directory should contain files, check for any issues that might have caused them to be removed or not saved correctly.

List Directory Files Related Nodes

Go back to the extension to check out more related nodes.
TrentNodes
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 Models, enabling artists to harness the latest AI tools to create incredible art.

List Directory Files