Visit ComfyUI Online for ready-to-use ComfyUI environment
Generates structured filename prefix with date and custom directory for systematic file organization.
The FileNamePrefixDateDirFirst
node is designed to generate a structured filename prefix that includes date and custom directory information, which is particularly useful for organizing and managing files systematically. This node helps you create a filename prefix that starts with a date-based directory, followed by any custom directory and text you specify. By using this node, you can ensure that your files are named in a consistent and organized manner, making it easier to locate and manage them later. The node is especially beneficial for AI artists who generate multiple files and need a reliable way to keep them organized. It automatically handles the inclusion of timestamps and custom text, ensuring that filenames are unique and descriptive.
This parameter determines whether to include a timestamp in the filename. When set to 'true', the current date and time will be appended to the filename. This is useful for ensuring that each file has a unique identifier based on the time it was created. The default value is 'false'.
This parameter specifies whether to create a directory based on the current date. When set to 'true', a directory named with the current date in the format yyMMdd
will be created, and the file will be placed inside this directory. This helps in organizing files by the date they were created. The default value is 'false'.
This parameter allows you to specify a custom directory name where the file will be saved. You can use this to categorize files based on your own criteria. The custom directory name will be sanitized to remove any invalid characters. If left empty, no custom directory will be created.
This parameter lets you add custom text to the filename. This text can be anything that helps you identify the file, such as a project name or a description. The custom text will be sanitized to remove any invalid characters to ensure it is a valid filename. If left empty, no custom text will be added.
This optional parameter can be used to include additional information in the filename based on the prompt used to generate the file. This can be useful for AI artists who want to include specific details about the file's content in its name.
This optional parameter allows you to include extra metadata in the filename. This can be useful for adding additional context or information about the file, such as version numbers or other relevant details.
The filename_prefix
output parameter provides the generated filename prefix based on the input parameters. This prefix includes the date-based directory, custom directory, timestamp, and custom text as specified. It ensures that the filename is unique and descriptive, making it easier to organize and manage your files.
date_directory
parameter to 'true'. This will create a new directory for each day, making it easy to find files based on their creation date.custom_text
parameter to add meaningful descriptions to your filenames. This can help you quickly identify the content of each file without opening it.date
and custom_directory
parameters to create a structured and hierarchical file organization system. This is particularly useful for large projects with many files.© Copyright 2024 RunComfy. All Rights Reserved.