ComfyUI > Nodes > ComfyUI_MieNodes > Get Directory Files Info 🐑

ComfyUI Node: Get Directory Files Info 🐑

Class Name

GetDirectoryFilesInfo|Mie

Category
🐑 MieNodes/🐑 Common
Author
mie (Account age: 1888days)
Extension
ComfyUI_MieNodes
Latest Updated
2025-04-17
Github Stars
0.05K

How to Install ComfyUI_MieNodes

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

Get Directory Files Info 🐑 Description

Retrieve detailed file metadata efficiently with pattern-based filtering and hash computation for file system management and analysis.

Get Directory Files Info 🐑| Get Directory Files Info 🐑:

The GetDirectoryFilesInfo| Get Directory Files Info 🐑 node is designed to provide comprehensive information about files within a specified directory. This node is particularly useful for users who need to gather detailed metadata about files, such as their size, creation and modification times, and hash values. By leveraging this node, you can efficiently scan directories and retrieve structured data about each file, which can be crucial for tasks like file management, auditing, or data analysis. The node's ability to filter files based on patterns and compute hashes using various algorithms adds flexibility and precision to its functionality, making it a valuable tool for managing and analyzing file systems.

Get Directory Files Info 🐑| Get Directory Files Info 🐑 Input Parameters:

directory_path

The directory_path parameter specifies the path to the directory you want to scan for files. It is a string input that determines the root directory from which the node will begin its search. The default value is "input/abc", but you can set it to any valid directory path. This parameter is crucial as it defines the scope of the file information retrieval process.

hash_algorithm

The hash_algorithm parameter allows you to choose the hashing algorithm used to compute the hash of each file in the directory. The available options are "md5", "sha1", "sha256", and "None", with the default being "None". Selecting a hash algorithm enables the node to generate a unique hash for each file, which can be useful for verifying file integrity or detecting duplicates.

pattern

The pattern parameter is a string that specifies a file name pattern to filter the files within the directory. By default, it is set to "*", which means all files will be included. You can modify this pattern to match specific file types or names, allowing for more targeted file information retrieval.

Get Directory Files Info 🐑| Get Directory Files Info 🐑 Output Parameters:

directory_files_info

The directory_files_info output parameter is a JSON-formatted string that contains detailed information about each file in the specified directory. This includes the file path, size, creation and modification times, and hash value (if a hash algorithm is selected). This output is essential for users who need a structured overview of the files in a directory, enabling them to analyze or process the data further.

Get Directory Files Info 🐑| Get Directory Files Info 🐑 Usage Tips:

  • Use specific patterns in the pattern parameter to filter files by type, such as "*.txt" for text files, to streamline the information retrieval process.
  • Select an appropriate hash_algorithm based on your needs; for instance, use "sha256" for higher security requirements when verifying file integrity.
  • Ensure the directory_path is correctly set to avoid errors related to non-existent directories.

Get Directory Files Info 🐑| Get Directory Files Info 🐑 Common Errors and Solutions:

{"error": "No such file or directory"}

  • Explanation: This error occurs when the specified directory_path does not exist or is incorrect.
  • Solution: Verify that the directory_path is correct and that the directory exists on your file system.

{"error": "Permission denied"}

  • Explanation: This error indicates that 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 required access rights.

{"error": "Invalid hash algorithm"}

  • Explanation: This error arises when an unsupported hash algorithm is specified.
  • Solution: Ensure that the hash_algorithm parameter is set to one of the supported options: "md5", "sha1", "sha256", or "None".

Get Directory Files Info 🐑 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_MieNodes
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.