Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently search and select files by extension, streamline file organization for AI art projects.
The DataSet_PathSelector
node is designed to help you efficiently search and select files from specified directories based on their extensions. This node is particularly useful when you need to filter and retrieve specific types of files from large datasets, making it easier to manage and utilize your data. By providing the ability to search within one directory and select from another, it offers flexibility and precision in handling file operations. The main goal of this node is to streamline the process of locating and organizing files, ensuring that you can quickly access the data you need for your AI art projects.
This parameter specifies the directory where the node will search for files. You need to provide the path to the directory as a string. The node will look for files with the extensions specified in the search_for_extensions
parameter within this directory. There are no minimum or maximum values for this parameter, but it should be a valid directory path. The default value is an empty string.
This parameter defines the file extensions that the node will search for in the search_in_directory
. You should provide a comma-separated string of extensions (e.g., "jpg,png"). The node will normalize these extensions to ensure they start with a dot (e.g., ".jpg", ".png"). There are no minimum or maximum values for this parameter, but it should be a valid list of extensions. The default value is an empty string.
This parameter specifies the directory from which the node will select files. You need to provide the path to the directory as a string. The node will look for files with the extensions specified in the select_extensions
parameter within this directory. There are no minimum or maximum values for this parameter, but it should be a valid directory path. The default value is an empty string.
This parameter defines the file extensions that the node will select from the select_from_directory
. You should provide a comma-separated string of extensions (e.g., "jpg,png"). The node will normalize these extensions to ensure they start with a dot (e.g., ".jpg", ".png"). There are no minimum or maximum values for this parameter, but it should be a valid list of extensions. The default value is an empty string.
This output parameter provides a list of filenames with their extensions that match the search criteria. These are the files found in the select_from_directory
that have the same names (excluding extensions) as the files found in the search_in_directory
and match the specified extensions. This list helps you identify the exact files that meet your criteria.
This output parameter provides a list of filenames without their extensions that match the search criteria. These are the base names of the files found in the select_from_directory
that correspond to the files found in the search_in_directory
and match the specified extensions. This list is useful for operations where you need the base names of the files.
This output parameter provides a list of full paths to the files that match the search criteria. These paths point to the files in the select_from_directory
that have the same names (excluding extensions) as the files found in the search_in_directory
and match the specified extensions. This list is essential for accessing the files directly.
search_in_directory
and select_from_directory
exist and are accessible to avoid errors.search_for_extensions
and select_extensions
to narrow down the search and selection process effectively.<directory_path>
' does not exist.search_in_directory
or select_from_directory
does not exist.<error_message>
© Copyright 2024 RunComfy. All Rights Reserved.