Add Folder Advanced:
The Add Folder Advanced node is designed to enhance your file management capabilities by allowing you to create new folder paths with advanced customization options. This node is particularly useful when you need to organize files systematically, as it provides the ability to append a folder name to an existing path. Additionally, it offers the flexibility to include date and time information in the folder name, either as a prefix or postfix, which can be invaluable for maintaining chronological order or versioning. By utilizing this node, you can streamline your workflow, ensuring that your file directories are both organized and easily navigable.
Add Folder Advanced Input Parameters:
path
This parameter specifies the base directory path where the new folder will be created. It is crucial as it determines the starting point for the folder addition. The path should be a valid directory path on your system. There are no specific minimum or maximum values, but it must be a valid path string.
folder_name
The folder_name parameter allows you to define the name of the new folder to be added to the specified path. This is a string input, and it should be concise yet descriptive enough to identify the folder's contents or purpose. The default value is an empty string, and it does not support multiline input.
add_date_time
This parameter provides options to include date and time information in the folder name. You can choose from "disable," "prefix," or "postfix." Selecting "disable" will not add any date or time, while "prefix" and "postfix" will add the date and time at the beginning or end of the folder name, respectively. This feature is useful for organizing folders chronologically.
date_time_format
The date_time_format parameter allows you to specify the format in which the date and time should be added to the folder name. It uses standard Python datetime format codes, with the default being "%Y_%m_%d_%H:%M:%S." This flexibility enables you to customize the date and time representation to suit your organizational needs.
input_variables
This optional parameter allows you to pass additional variables that can be used to dynamically format the folder name. It accepts any type of input, providing a powerful way to customize folder names based on external data or conditions.
Add Folder Advanced Output Parameters:
PATH
The output parameter PATH represents the newly constructed folder path. This path includes the base directory, the specified folder name, and any optional date and time formatting. It is a string that can be used in subsequent operations to access or manage the newly created folder.
Add Folder Advanced Usage Tips:
- Use the
add_date_timeparameter to automatically organize folders by creation date, which is particularly useful for projects that require version control or chronological sorting. - Customize the
date_time_formatto match your preferred date and time representation, ensuring consistency across your file management system. - Leverage the
input_variablesparameter to dynamically generate folder names based on project-specific data, enhancing the flexibility and adaptability of your file organization.
Add Folder Advanced Common Errors and Solutions:
Invalid path specified
- Explanation: The path provided is not a valid directory path on your system.
- Solution: Ensure that the path is correctly specified and exists on your system before using it in the node.
Unsupported date_time_format
- Explanation: The date_time_format string contains invalid or unsupported format codes.
- Solution: Refer to Python's datetime module documentation to ensure that your format string uses valid codes.
Folder name conflicts
- Explanation: A folder with the same name already exists in the specified path.
- Solution: Consider appending a unique identifier, such as a timestamp, to the folder name to avoid conflicts.
