ComfyUI > Nodes > ComfyUI-Path-Helper > Create Project Root

ComfyUI Node: Create Project Root

Class Name

Create Project Root

Category
path_helper
Author
Billius-AI (Account age: 800days)
Extension
ComfyUI-Path-Helper
Latest Updated
2024-05-22
Github Stars
0.02K

How to Install ComfyUI-Path-Helper

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

Create Project Root Description

The node automates creating a main project directory in ComfyUI, enhancing file organization.

Create Project Root:

The Create Project Root node is designed to help you establish a foundational directory structure for your projects within the ComfyUI environment. This node simplifies the process of creating a main project directory, which can be either relative to your current working directory or an absolute path based on a predefined output directory. By automating the creation of this root directory, the node ensures that your project files are organized from the start, reducing the risk of misplaced files and enhancing workflow efficiency. This is particularly beneficial for AI artists who need to manage multiple projects and require a consistent and organized file structure.

Create Project Root Input Parameters:

project_root_name

This parameter specifies the name of the root directory you wish to create for your project. It is a string input, meaning you can type any name that suits your project. The name you provide will be used as the directory name, so it's important to choose a descriptive and unique name to avoid confusion with other projects. There are no minimum or maximum length restrictions, but it's advisable to keep it concise and relevant.

output_path_generation

This parameter determines how the path to the project root directory is generated. You have two options: "relative" and "absolute". Choosing "relative" will create the directory relative to your current working directory, which is useful if you want to keep your project structure within a specific folder. On the other hand, selecting "absolute" will create the directory based on a predefined output directory, which is useful for maintaining a consistent location for all your projects. This choice impacts where your project files will be stored, so consider your organizational needs when selecting an option.

Create Project Root Output Parameters:

PATH

The output of this node is a PATH type, which represents the location of the newly created project root directory. This path can be used in subsequent nodes to reference the directory, ensuring that all project-related files are stored in the correct location. The output path is crucial for maintaining an organized file structure, as it provides a consistent reference point for all project operations.

Create Project Root Usage Tips:

  • Use descriptive names for project_root_name to easily identify your projects later.
  • Choose "absolute" for output_path_generation if you want all projects to be stored in a central location, which can simplify backup and retrieval processes.

Create Project Root Common Errors and Solutions:

Directory already exists

  • Explanation: This error occurs when a directory with the specified project_root_name already exists in the chosen path.
  • Solution: Choose a different project_root_name or manually delete the existing directory if it is no longer needed.

Invalid characters in project_root_name

  • Explanation: Some characters are not allowed in directory names and can cause errors.
  • Solution: Ensure that the project_root_name does not contain any special characters that are not permitted by your operating system. Stick to alphanumeric characters and underscores.

Create Project Root Related Nodes

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

Create Project Root